ソースを参照

:art: fix https://github.com/siyuan-note/siyuan/issues/10527

Vanessa 1 年間 前
コミット
51082583f8
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/src/protyle/render/av/relation.ts

+ 1 - 1
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);