Skip to content

Commit cd9c02f

Browse files
committed
Set new preview secret before changing privacy
1 parent 62c5262 commit cd9c02f

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/overmind/namespaces/workspace

1 file changed

+1
-1
lines changed

packages/app/src/app/overmind/namespaces/workspace/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ export const sandboxPrivacyChanged: AsyncAction<{
185185
state.editor.currentId,
186186
privacy
187187
);
188-
state.editor.currentSandbox.privacy = privacy;
189188
state.editor.currentSandbox.previewSecret = sandbox.previewSecret;
189+
state.editor.currentSandbox.privacy = privacy;
190190

191191
if (
192192
getTemplate(state.editor.currentSandbox.template).isServer &&

0 commit comments

Comments
 (0)