From ab8077999d08dd6dc4590ab20481e081b80ddab0 Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Fri, 1 Dec 2023 18:42:39 +0800 Subject: [PATCH] fix: display incorrect value in zset content fix: content pane cause error when value is null --- backend/services/browser_service.go | 2 +- frontend/src/stores/tab.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/browser_service.go b/backend/services/browser_service.go index e83f8e4..26be709 100644 --- a/backend/services/browser_service.go +++ b/backend/services/browser_service.go @@ -896,7 +896,7 @@ func (b *browserService) GetKeyDetail(param types.KeyDetailParam) (resp types.JS items = make([]types.ZSetEntryItem, 0, len(loadedVal)) for _, z := range loadedVal { - val := strutil.AnyToString(z.Score, "", 0) + val := strutil.AnyToString(z.Member, "", 0) if doFilter && !strings.Contains(val, param.MatchPattern) { continue } diff --git a/frontend/src/stores/tab.js b/frontend/src/stores/tab.js index 37cdeb5..1966216 100644 --- a/frontend/src/stores/tab.js +++ b/frontend/src/stores/tab.js @@ -235,7 +235,7 @@ const useTabStore = defineStore('tab', { tabData.value = assign(value, tabData.value || {}) } } else { - tabData.value = value + tabData.value = value || [] } },