Skip to content

Commit 2b91628

Browse files
committed
Fix updating package.json via live
1 parent b10ca4e commit 2b91628

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/app/src/app/overmind/namespaces/editor/internalActions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ export const saveCode: AsyncAction<{
9797
return;
9898
}
9999

100-
module.code = code;
100+
if (module.code !== code) {
101+
actions.editor.codeChanged({ moduleShortid, code });
102+
}
101103

102104
try {
103105
const updatedModule = await effects.api.saveModuleCode(sandbox.id, module);

0 commit comments

Comments
 (0)