Skip to content

Commit e374523

Browse files
committed
Put module state back on top
1 parent 3a8b5d8 commit e374523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export const initializeModuleState: Action<IModuleState> = (
109109
});
110110
Object.keys(moduleState).forEach(moduleShortid => {
111111
const moduleInfo = moduleState[moduleShortid];
112+
effects.live.createClient(moduleShortid, moduleInfo.revision || 0);
112113

113114
// Module has not been saved, so is different
114115
const module = sandbox.modules.find(m => m.shortid === moduleShortid);
@@ -145,7 +146,6 @@ export const initializeModuleState: Action<IModuleState> = (
145146
effects.vscode.setModuleCode(module);
146147
}
147148
}
148-
effects.live.createClient(moduleShortid, moduleInfo.revision || 0);
149149
}
150150
});
151151
actions.editor.internal.updatePreviewCode();

0 commit comments

Comments
 (0)