diff --git a/app/src/protyle/index.ts b/app/src/protyle/index.ts index 1a12eb66c..2e06a4249 100644 --- a/app/src/protyle/index.ts +++ b/app/src/protyle/index.ts @@ -294,7 +294,7 @@ export class Protyle { private onTransaction(data: IWebSocketData) { if (!this.protyle.preview.element.classList.contains("fn__none") && - data.context.rootIDs.includes(this.protyle.block.rootID)) { + data.context?.rootIDs?.includes(this.protyle.block.rootID)) { this.protyle.preview.render(this.protyle); return; }