From 29d8cd8baa2628b2d1ed0c7d1a16068f76105a71 Mon Sep 17 00:00:00 2001 From: Ben Greenawald Date: Thu, 19 Jun 2025 18:19:32 -0400 Subject: [PATCH] Add check to make sure card context exists --- src/gui/card-ui.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/card-ui.tsx b/src/gui/card-ui.tsx index 2ff5fbab..792e03a1 100644 --- a/src/gui/card-ui.tsx +++ b/src/gui/card-ui.tsx @@ -440,6 +440,7 @@ export class CardUI { } private _updateCardContext() { + if (!this.cardContext) return; if (!this.settings.showContextInCards) { this.cardContext.setText(""); return;