Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Hotfix #441

Merged
merged 3 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/wild-crabs-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"studiocms": patch
---

fix firsttime setup page redirect, and fix sdk
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const curves = validImages.filter(({ name }) => name === 'studiocms-curves')[0];
description: 'Basic site information saved successfully!',
type: 'success',
})
window.location.assign('/setup/2');
window.location.assign('/start/2');
}

if (response.status !== 200) {
Expand Down
12 changes: 6 additions & 6 deletions packages/studiocms/src/sdk/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1561,9 +1561,9 @@ export function studiocmsSDKCore() {
} = pageData;

const stringified = {
categories: JSON.stringify(categories || []),
tags: JSON.stringify(tags || []),
contributorIds: JSON.stringify(contributorIds || []),
categories: categories || [],
tags: tags || [],
contributorIds: contributorIds || [],
};

const contentData = {
Expand Down Expand Up @@ -1948,9 +1948,9 @@ export function studiocmsSDKCore() {
} = pageData;

const stringified = {
categories: JSON.stringify(categories || []),
tags: JSON.stringify(tags || []),
contributorIds: JSON.stringify(contributorIds || []),
categories: categories || [],
tags: tags || [],
contributorIds: contributorIds || [],
};

const contentData = {
Expand Down
Loading