fix: display incorrect value in zset content
fix: content pane cause error when value is null
This commit is contained in:
parent
eb8f68b628
commit
ab8077999d
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 || []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue