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, } }