Skip to content

Commit

Permalink
fix: refresh when layout state change
Browse files Browse the repository at this point in the history
fixes #14
  • Loading branch information
linonetwo committed Mar 28, 2024
1 parent ee894ec commit aa62b8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tw-whiteboard/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class TldrawWhiteBoardWidget extends Widget<IAppProps> {

public refresh(changedTiddlers: IChangedTiddlers): boolean {
if (this.editTitle === undefined) return false;
if (changedTiddlers['$:/state/Whiteboard/PageLayout/tiddler']) return true;
if (changedTiddlers[this.editTitle]?.deleted === true) {
// this delete operation will trigger the close of the tiddler, so trigger the save, we have to prevent that
this.lock();
Expand Down

0 comments on commit aa62b8a

Please sign in to comment.