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 5b6cf4a commit bb8c250Copy full SHA for bb8c250
packages/app/src/app/overmind/namespaces/live/internalActions.ts
@@ -122,13 +122,10 @@ export const initializeModuleState: Action<IModuleState> = (
122
moduleInfo.saved_code !== module.savedCode;
123
124
if (moduleChanged) {
125
- if (
126
- moduleInfo.saved_code === null &&
127
- typeof moduleInfo.saved_code === 'string'
128
- ) {
+ if (moduleInfo.saved_code !== undefined) {
129
module.savedCode = moduleInfo.saved_code;
130
}
131
- if (typeof moduleInfo.code === 'string') {
+ if (moduleInfo.code !== undefined) {
132
module.code = moduleInfo.code;
133
134
0 commit comments