From 641db503f0f077e689ebe5bf3f5d8726cc93719c Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 29 Dec 2023 11:18:14 +0800 Subject: [PATCH] :art: Add Rollup column to database table view https://github.com/siyuan-note/siyuan/issues/9958 --- app/src/protyle/render/av/rollup.ts | 2 +- kernel/api/av.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/protyle/render/av/rollup.ts b/app/src/protyle/render/av/rollup.ts index e1a003ce3..d37843ade 100644 --- a/app/src/protyle/render/av/rollup.ts +++ b/app/src/protyle/render/av/rollup.ts @@ -37,7 +37,7 @@ const genSearchList = (element: Element, keyword: string, avId: string, cb?: () keyword }, (response) => { let html = ""; - response.data.nonRelationKeys.forEach((item: IAVColumn, index: number) => { + response.data.keys.forEach((item: IAVColumn, index: number) => { html += `
${item.icon ? unicode2Emoji(item.icon, "b3-list-item__graphic", true) : ``} ${genIconHTML()} diff --git a/kernel/api/av.go b/kernel/api/av.go index 96be46bba..c58f066fa 100644 --- a/kernel/api/av.go +++ b/kernel/api/av.go @@ -40,7 +40,7 @@ func searchAttributeViewNonRelationKey(c *gin.Context) { nonRelationKeys := model.SearchAttributeViewNonRelationKey(avID, keyword) ret.Data = map[string]interface{}{ - "nonRelationKeys": nonRelationKeys, + "keys": nonRelationKeys, } } @@ -58,7 +58,7 @@ func searchAttributeViewRelationKey(c *gin.Context) { relationKeys := model.SearchAttributeViewRelationKey(avID, keyword) ret.Data = map[string]interface{}{ - "relationKeys": relationKeys, + "keys": relationKeys, } }