Bugfix/delete log (#315)

* fix delete log

* fix delete log
This commit is contained in:
DiamondThree
2022-08-24 13:47:47 +08:00
committed by GitHub
parent 15055bc7c6
commit 617e9a0612
5 changed files with 13 additions and 9 deletions
@@ -626,7 +626,7 @@ export class TldrawApp extends StateManager<TDSnapshot> {
private prev_bindings = this.page.bindings;
private prev_assets = this.document.assets;
private _broadcastPageChanges = () => {
private _broadcastPageChanges = async () => {
const visited = new Set<string>();
const changedShapes: Record<string, TDShape | undefined> = {};
@@ -683,7 +683,7 @@ export class TldrawApp extends StateManager<TDSnapshot> {
Object.keys(changedAssets).length > 0
) {
this.just_sent = true;
this.callbacks.onChangePage?.(
await this.callbacks.onChangePage?.(
this,
changedShapes,
changedBindings,