fix: display incorrect value in zset content

fix: content pane cause error when value is null
This commit is contained in:
Lykin 2023-12-01 18:42:39 +08:00
parent eb8f68b628
commit ab8077999d
2 changed files with 2 additions and 2 deletions

View File

@ -896,7 +896,7 @@ func (b *browserService) GetKeyDetail(param types.KeyDetailParam) (resp types.JS
items = make([]types.ZSetEntryItem, 0, len(loadedVal)) items = make([]types.ZSetEntryItem, 0, len(loadedVal))
for _, z := range loadedVal { for _, z := range loadedVal {
val := strutil.AnyToString(z.Score, "", 0) val := strutil.AnyToString(z.Member, "", 0)
if doFilter && !strings.Contains(val, param.MatchPattern) { if doFilter && !strings.Contains(val, param.MatchPattern) {
continue continue
} }

View File

@ -235,7 +235,7 @@ const useTabStore = defineStore('tab', {
tabData.value = assign(value, tabData.value || {}) tabData.value = assign(value, tabData.value || {})
} }
} else { } else {
tabData.value = value tabData.value = value || []
} }
}, },