Skip to content

Commit bb8c250

Browse files
committed
Fix typecheck
1 parent 5b6cf4a commit bb8c250

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,10 @@ export const initializeModuleState: Action<IModuleState> = (
122122
moduleInfo.saved_code !== module.savedCode;
123123

124124
if (moduleChanged) {
125-
if (
126-
moduleInfo.saved_code === null &&
127-
typeof moduleInfo.saved_code === 'string'
128-
) {
125+
if (moduleInfo.saved_code !== undefined) {
129126
module.savedCode = moduleInfo.saved_code;
130127
}
131-
if (typeof moduleInfo.code === 'string') {
128+
if (moduleInfo.code !== undefined) {
132129
module.code = moduleInfo.code;
133130
}
134131

0 commit comments

Comments
 (0)