Skip to content

Commit f970484

Browse files
committed
fix(editor): ensure unsaved editor does not reload on prod
1 parent fd1f33d commit f970484

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/editor/src/editor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as grapesjs from 'grapesjs';
22
import { html, render } from '@bolt/core';
3-
import { query } from '@bolt/core/utils';
3+
import { query, IS_PROD } from '@bolt/core/utils';
44
import { triggerAnimsInEl } from '@bolt/components-animate/utils';
55
import { setupPanels } from './panels';
66
import { setupBlocks } from './blocks';
@@ -36,7 +36,7 @@ export function enableEditor({ space, uiWrapper, config }) {
3636
// height: '100vh',
3737
// width: 'auto',
3838
plugins: [setupBolt, setupComponents, setupPanels, setupBlocks],
39-
noticeOnUnload: false,
39+
noticeOnUnload: IS_PROD,
4040
panels: {
4141
stylePrefix: `${stylePrefix}panels-`,
4242
defaults: [

0 commit comments

Comments
 (0)