mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
a9ccee5d55
commit
2ef990b312
1 changed files with 14 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue