mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 04:31:50 +08:00
This commit is contained in:
parent
a9ccee5d55
commit
2ef990b312
@ -224,9 +224,22 @@ export const setFilter = async (options: {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
const response = await fetchSyncPost("/api/av/getAttributeView", {id: targetAVId});
|
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) {
|
if (item.key.id === colData.rollup.keyID) {
|
||||||
filterValue.type = item.key.type;
|
filterValue.type = item.key.type;
|
||||||
|
if (item.key.type === "select") {
|
||||||
|
colData.options = item.key.options;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user