From c62e2a43cd0a70c4a19e06069ee7617dc4fc96b9 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 10 Jun 2025 11:15:24 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/10414 --- app/src/protyle/render/av/calc.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/protyle/render/av/calc.ts b/app/src/protyle/render/av/calc.ts index 38ae15e80..df574b160 100644 --- a/app/src/protyle/render/av/calc.ts +++ b/app/src/protyle/render/av/calc.ts @@ -38,7 +38,7 @@ const calcItem = (options: { }]); } else { options.target.querySelector(".b3-menu__accelerator").textContent = getNameByOperator(options.operator, true); - const colData = options.data.view.columns.find((item) => { + const colData = (options.data.view as IAVTable).columns.find((item) => { if (item.id === options.colId) { if (!item.rollup) { item.rollup = {}; @@ -274,7 +274,7 @@ export const openCalcMenu = async (protyle: IProtyle, calcElement: HTMLElement, const avResponse = await fetchSyncPost("api/av/renderAttributeView", {id: avId}); avData = avResponse.data; } - avData.view.columns.find((item) => { + (avData.view as IAVTable).columns.find((item) => { if (item.id === colId) { relationKeyID = item.rollup?.relationKeyID; keyID = item.rollup?.keyID; @@ -283,7 +283,7 @@ export const openCalcMenu = async (protyle: IProtyle, calcElement: HTMLElement, }); if (relationKeyID && keyID) { let relationAvId: string; - avData.view.columns.find((item) => { + (avData.view as IAVTable).columns.find((item) => { if (item.id === relationKeyID) { relationAvId = item.relation?.avID; return true;