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

Vanessa2ef990b312d9
diff --git a/app/src/protyle/render/av/filter.ts b/app/src/protyle/render/av/filter.ts
index b4bd14cb44..420f04e004 100644
--- a/app/src/protyle/render/av/filter.ts
+++ b/app/src/protyle/render/av/filter.ts
@@ -224,9 +224,22 @@ export const setFilter = async (options: {
}
});
const response = await fetchSyncPost("/api/av/getAttributeView", {id: targetAVId});
- response.data.av.keyValues.find((item: { key: { id: string, name: string, type: TAVCol } }) => {
+ response.data.av.keyValues.find((item: {
+ key: {
+ id: string,
+ name: string,
+ type: TAVCol,
+ options: {
+ name: string,
+ color: string,
+ }[]
+ }
+ }) => {
if (item.key.id === colData.rollup.keyID) {
filterValue.type = item.key.type;
+ if (item.key.type === "select") {
+ colData.options = item.key.options;
+ }
return true;
}
});