Skip to content

Commit

Permalink
chore: assert alive
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed Jan 15, 2025
1 parent f927bae commit b73bbef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/amis-editor-core/src/store/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ import debounce from 'lodash/debounce';
import type {DialogSchema} from 'amis/lib/renderers/Dialog';
import type {DrawerSchema} from 'amis/lib/renderers/Drawer';
import getLayoutInstance from '../layout';
import {isAlive} from 'mobx-state-tree';

export interface SchemaHistory {
versionId: number;
Expand Down Expand Up @@ -2180,7 +2181,7 @@ export const MainStore = types
}
});
setTimeout(() => {
this.calculateHighlightBox(ids);
isAlive(self) && this.calculateHighlightBox(ids);
}, 200);
},

Expand Down

0 comments on commit b73bbef

Please sign in to comment.