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

Vanessa11d2741e684e
diff --git a/app/src/protyle/render/av/groups.ts b/app/src/protyle/render/av/groups.ts
index f0fd660547..49db827b17 100644
--- a/app/src/protyle/render/av/groups.ts
+++ b/app/src/protyle/render/av/groups.ts
@@ -12,13 +12,13 @@ export const getPageSize = (blockElement: Element) => {
[key: string]: {
pageSize: string
}
- }[] = [];
+ } = {};
let unGroupPageSize: string;
blockElement.querySelectorAll(".av__body").forEach((item:HTMLElement) => {
const id = item.dataset.groupId;
const pageSize = item.dataset.pageSize;
if (id) {
- groupPageSize.push({[id]: {pageSize}});
+ groupPageSize[id] = {pageSize};
} else if (!unGroupPageSize) {
unGroupPageSize = pageSize;
}