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

Vanessad97105e970bc
diff --git a/app/src/protyle/render/av/filter.ts b/app/src/protyle/render/av/filter.ts
index b3d9e4077e..5a1ecb2bfe 100644
--- a/app/src/protyle/render/av/filter.ts
+++ b/app/src/protyle/render/av/filter.ts
@@ -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;
}
});