mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 22:08:48 +01:00
This commit is contained in:
parent
6de55da59a
commit
d97105e970
1 changed files with 9 additions and 5 deletions
|
|
@ -204,11 +204,15 @@ export const setFilter = async (options: {
|
|||
});
|
||||
options.data.view.filters.find(item => {
|
||||
if (item.column === colData.id && item.value.type === "rollup") {
|
||||
item.value.rollup.contents = [{
|
||||
[filterType]: genCellValue(filterType, ""),
|
||||
type: filterType
|
||||
}];
|
||||
item.operator = getDefaultOperatorByType(filterType)
|
||||
if (!item.value.rollup) {
|
||||
item.value.rollup = {
|
||||
contents: [{
|
||||
[filterType]: genCellValue(filterType, ""),
|
||||
type: filterType
|
||||
}]
|
||||
};
|
||||
item.operator = getDefaultOperatorByType(filterType)
|
||||
}
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue