Bugfix/delete log (#315)

* fix delete log

* fix delete log
This commit is contained in:
DiamondThree authored and GitHub committed 2022-08-24 13:47:47 +08:00
1 parent 15055bc7c6
commit 617e9a0612
5 files changed
+13 -9

No files matched your search

@@ -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,