File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
packages/app/src/app/overmind/namespaces/editor Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,15 @@ export const saveCode: AsyncAction<{
135135 state . git . isFetching = false ;
136136 }
137137
138+ // If the executor is a server we only should send updates if the sandbox has been
139+ // started already
140+ if (
141+ ! effects . executor . isServer ( ) ||
142+ state . server . containerStatus === ServerContainerStatus . SANDBOX_STARTED
143+ ) {
144+ effects . executor . updateFiles ( state . editor . currentSandbox ) ;
145+ }
146+
138147 if ( state . live . isLive && state . live . isCurrentEditor ) {
139148 effects . live . sendModuleSaved ( module ) ;
140149 }
@@ -267,15 +276,6 @@ export const setModuleCode: Action<{
267276 ) ;
268277
269278 module . code = code ;
270-
271- // If the executor is a server we only should send updates if the sandbox has been
272- // started already
273- if (
274- ! effects . executor . isServer ( ) ||
275- state . server . containerStatus === ServerContainerStatus . SANDBOX_STARTED
276- ) {
277- effects . executor . updateFiles ( currentSandbox ) ;
278- }
279279} ;
280280
281281export const forkSandbox : AsyncAction < {
You can’t perform that action at this time.
0 commit comments