From 2ef990b312d91742ce6c67489e50d06a4b15caae Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 28 Apr 2025 22:37:26 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14706 --- app/src/protyle/render/av/filter.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/render/av/filter.ts b/app/src/protyle/render/av/filter.ts index b4bd14cb4..420f04e00 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; } });