File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/app/src/app/overmind/namespaces/workspace Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -282,12 +282,16 @@ export const addedTemplate: AsyncAction<{
282282
283283 try {
284284 const newTemplate = await effects . api . createTemplate ( sandboxId , template ) ;
285- const sandbox = state . editor . sandboxes [ sandboxId ] ;
285+ const sandbox = state . editor . currentSandbox ;
286286 sandbox . isFrozen = true ;
287287 sandbox . customTemplate = newTemplate ;
288288 actions . modalClosed ( ) ;
289- effects . notificationToast . success ( 'Templated Created ' ) ;
289+ effects . notificationToast . success ( 'Successfully created the template ' ) ;
290290 } catch ( error ) {
291+ if ( process . env . NODE_ENV === 'development' ) {
292+ console . error ( error ) ;
293+ }
294+
291295 effects . notificationToast . error (
292296 'Could not create template, please try again later'
293297 ) ;
You can’t perform that action at this time.
0 commit comments