fix: incorrect parse node key
This commit is contained in:
parent
5a9fb00474
commit
df95804a53
|
@ -803,9 +803,9 @@ const useConnectionStore = defineStore('connections', {
|
||||||
* @return {DatabaseItem|null}
|
* @return {DatabaseItem|null}
|
||||||
*/
|
*/
|
||||||
getNode(key) {
|
getNode(key) {
|
||||||
const idx = key.indexOf('#')
|
let idx = key.indexOf('#')
|
||||||
if (idx < 0) {
|
if (idx < 0) {
|
||||||
return null
|
idx = size(key)
|
||||||
}
|
}
|
||||||
const dbPart = key.substring(0, idx)
|
const dbPart = key.substring(0, idx)
|
||||||
// parse server and db index
|
// parse server and db index
|
||||||
|
|
Loading…
Reference in New Issue