Skip to content

Commit

Permalink
Set new preview secret before changing privacy
Browse files Browse the repository at this point in the history
  • Loading branch information
CompuIves committed Oct 28, 2019
1 parent 62c5262 commit cd9c02f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 185,8 @@ export const sandboxPrivacyChanged: AsyncAction<{
state.editor.currentId,
privacy
);
state.editor.currentSandbox.privacy = privacy;
state.editor.currentSandbox.previewSecret = sandbox.previewSecret;
state.editor.currentSandbox.privacy = privacy;

if (
getTemplate(state.editor.currentSandbox.template).isServer &&
Expand Down

0 comments on commit cd9c02f

Please sign in to comment.