File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/app/src/app/overmind/namespaces/editor Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -177,8 +177,8 @@ export const saveCode: AsyncAction<{
177177} ;
178178
179179export const updateCurrentTemplate : AsyncAction = async ( {
180- state,
181180 effects,
181+ state,
182182} ) => {
183183 try {
184184 const currentTemplate = state . editor . currentSandbox . template ;
@@ -189,9 +189,9 @@ export const updateCurrentTemplate: AsyncAction = async ({
189189 // in the sandbox configuration.
190190 if (
191191 templateDefinition . isServer ||
192- state . editor . parsedConfigurations . sandbox . parsed . template
192+ state . editor . parsedConfigurations ? .sandbox ? .parsed ? .template
193193 ) {
194- const { parsed = { } } = state . editor . parsedConfigurations ! . package ! ;
194+ const { parsed = { } } = state . editor . parsedConfigurations ? .package || { } ;
195195
196196 const modulesByPath = mapValues ( state . editor . modulesByPath , module => ( {
197197 // No idea why this typing fails!
You can’t perform that action at this time.
0 commit comments