From 51082583f841e4b05c486a462391b4c6893cd573 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 7 Mar 2024 23:41:52 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/10527 --- app/src/protyle/render/av/relation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/render/av/relation.ts b/app/src/protyle/render/av/relation.ts index 4ff32a138..89357b11d 100644 --- a/app/src/protyle/render/av/relation.ts +++ b/app/src/protyle/render/av/relation.ts @@ -388,7 +388,7 @@ export const setRelationCell = (protyle: IProtyle, nodeElement: HTMLElement, tar separatorElement.insertAdjacentHTML("afterend", genSelectItemHTML("empty")); } } - menuElement.querySelector(".b3-menu__item--current").classList.remove("b3-menu__item--current"); + menuElement.querySelector(".b3-menu__item--current")?.classList.remove("b3-menu__item--current"); menuElement.querySelector(".b3-menu__items .b3-menu__item:not(.fn__none)").classList.add("b3-menu__item--current"); } updateCellsValue(protyle, nodeElement, newValue, cellElements);