Skip to content

Commit

Permalink
fix(editor): 新增页面不用添加历史记录
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen authored and khuntoriia committed Mar 31, 2022
1 parent 6dbda7b commit 3dab16b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/editor/src/services/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ class Editor extends BaseService {
await this.select(newNode);

this.addModifiedNodeId(newNode.id);
this.pushHistoryState();
if (type !== NodeType.PAGE) {
this.pushHistoryState();
}

return newNode;
}
Expand Down

0 comments on commit 3dab16b

Please sign in to comment.