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/10414

Vanessa4dc29e8fc684
diff --git a/app/src/protyle/render/av/select.ts b/app/src/protyle/render/av/select.ts
index bcbdc2cfdd..7f4fe959ae 100644
--- a/app/src/protyle/render/av/select.ts
+++ b/app/src/protyle/render/av/select.ts
@@ -653,7 +653,7 @@ export const getSelectHTML = (fields: IAVColumn[], cellElements: HTMLElement[],
cellValues.push(genCellValueByElement(isCustomAttr ? item.dataset.type as TAVCol : getTypeByCellElement(item), item));
});
}
- const colId = cellElements[0].dataset[blockElement.getAttribute("data-av-type") === "table" ? "colId" : "fieldId"];
+ const colId = getColId(cellElements[0],blockElement.getAttribute("data-av-type") as TAVView);
const colData = fields.find(item => {
if (item.id === colId) {
return item;