We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd0491d commit 7dabc85Copy full SHA for 7dabc85
packages/app/src/app/overmind/namespaces/live/internalActions.ts
@@ -96,15 +96,15 @@ export const initializeModuleState: Action<any> = (
96
) => {
97
Object.keys(moduleState).forEach(moduleShortid => {
98
const moduleInfo = moduleState[moduleShortid];
99
- effects.live.createClient(moduleShortid, moduleInfo.revision);
+ effects.live.createClient(moduleShortid, moduleInfo.revision || 0);
100
101
// Module has not been saved, so is different
102
const module = state.editor.currentSandbox.modules.find(
103
m => m.shortid === moduleShortid
104
);
105
106
if (module) {
107
- if (moduleInfo.code === null) {
+ if (moduleInfo.code === null || !('code' in moduleInfo)) {
108
return;
109
}
110
0 commit comments