From 5840d3525f58be574eac806d0c9f6521cf1fc47d Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 19 Nov 2025 13:02:31 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16375 --- app/src/protyle/render/av/layout.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/render/av/layout.ts b/app/src/protyle/render/av/layout.ts index 658f74af7..515b92ad1 100644 --- a/app/src/protyle/render/av/layout.ts +++ b/app/src/protyle/render/av/layout.ts @@ -218,7 +218,7 @@ export const bindLayoutEvent = (options: { return; } const toggleBgElement = options.menuElement.querySelector('.b3-switch[data-type="toggle-kanban-bg"]') as HTMLInputElement; - toggleBgElement.addEventListener("change", () => { + toggleBgElement?.addEventListener("change", () => { const checked = toggleBgElement.checked; transaction(options.protyle, [{ action: "setAttrViewFillColBackgroundColor",