fix: error causes when close database
This commit is contained in:
parent
22d3954e6f
commit
25cdfa2685
|
@ -223,9 +223,9 @@ const handleSelectContextMenu = (key) => {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const node = connectionStore.getNode(selectedKey)
|
const node = connectionStore.getNode(selectedKey)
|
||||||
const { db, key: nodeKey } = node || {}
|
const { db = 0, key: nodeKey, redisKey: rk = '', redisKeyCode: rkc, label } = node || {}
|
||||||
const redisKey = node.redisKeyCode || node.redisKey
|
const redisKey = rkc || rk
|
||||||
const redisKeyName = !!node.redisKeyCode ? node.label : redisKey
|
const redisKeyName = !!rkc ? label : redisKey
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case 'server_info':
|
case 'server_info':
|
||||||
tabStore.setSelectedKeys(props.server)
|
tabStore.setSelectedKeys(props.server)
|
||||||
|
|
Loading…
Reference in New Issue