From df95804a53ce6c780ba7710639d6a0916d494856 Mon Sep 17 00:00:00 2001 From: tiny-craft <137850705+tiny-craft@users.noreply.github.com> Date: Sun, 20 Aug 2023 14:45:32 +0800 Subject: [PATCH] fix: incorrect parse node key --- frontend/src/stores/connections.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/stores/connections.js b/frontend/src/stores/connections.js index 33396aa..16e07b3 100644 --- a/frontend/src/stores/connections.js +++ b/frontend/src/stores/connections.js @@ -803,9 +803,9 @@ const useConnectionStore = defineStore('connections', { * @return {DatabaseItem|null} */ getNode(key) { - const idx = key.indexOf('#') + let idx = key.indexOf('#') if (idx < 0) { - return null + idx = size(key) } const dbPart = key.substring(0, idx) // parse server and db index