Skip to content

Commit b3c57ce

Browse files
committed
fix: 销毁实例时不清空主题配置
1 parent 3065078 commit b3c57ce

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

packages/core/src/LogicFlow.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,6 @@ export class LogicFlow {
14451445
this.graphModel.destroy()
14461446
this.tool.destroy()
14471447
this.history.destroy()
1448-
clearThemeMode()
14491448
for (const extensionName in this.extension) {
14501449
const extensionInstance = this.extension[extensionName]
14511450
if ('destroy' in extensionInstance) {

packages/core/src/view/overlay/OutlineOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class OutlineOverlay extends Component<IProps> {
3131
(nodeSelectedOutline && isSelected) ||
3232
(hoverOutline && isHovered)
3333
) {
34-
const style = element.getOutlineStyle()
34+
const style = element.getOutlineStyle() || {}
3535
let attributes = {}
3636
Object.keys(style).forEach((key) => {
3737
if (key !== 'hover') {

0 commit comments

Comments
 (0)