Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/11053

Vanessab7297bdf42c2
diff --git a/app/src/protyle/render/av/select.ts b/app/src/protyle/render/av/select.ts
index df9cc417de..053168745a 100644
--- a/app/src/protyle/render/av/select.ts
+++ b/app/src/protyle/render/av/select.ts
@@ -14,7 +14,7 @@ let cellValues: IAVCellValue[];
const filterSelectHTML = (key: string, options: {
name: string,
color: string,
- desc: string
+ desc?: string
}[], selected: string[] = []) => {
let html = "";
let hasMatch = false;
@@ -28,7 +28,7 @@ const filterSelectHTML = (key: string, options: {
if (!key ||
(key.toLowerCase().indexOf(item.name.toLowerCase()) > -1 ||
item.name.toLowerCase().indexOf(key.toLowerCase()) > -1)) {
- html += `<button data-type="addColOptionOrCell" class="b3-menu__item" data-name="${item.name}" data-desc="${item.desc}" draggable="true" data-color="${item.color}">
+ html += `<button data-type="addColOptionOrCell" class="b3-menu__item" data-name="${item.name}" data-desc="${item.desc||""}" draggable="true" data-color="${item.color}">
<svg class="b3-menu__icon fn__grab"><use xlink:href="#iconDrag"></use></svg>
<div class="fn__flex-1">
<span class="b3-chip" style="background-color:var(--b3-font-background${item.color});color:var(--b3-font-color${item.color})">
diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts
index e0a998fb74..9de5531942 100644
--- a/app/src/types/index.d.ts
+++ b/app/src/types/index.d.ts
@@ -815,7 +815,7 @@ interface IAVColumn {
options?: {
name: string,
color: string,
- desc: string,
+ desc?: string,
}[],
relation?: IAVColumnRelation,
rollup?: IAVCellRollupValue