Browse Source

fix: wrong parent node for SQL Views

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1127/head
Wing-Kam Wong 2 years ago
parent
commit
c317818069
  1. 2
      packages/nc-gui/store/tabs.js

2
packages/nc-gui/store/tabs.js

@ -171,7 +171,7 @@ export const actions = {
.list[0] // project
.children[0] // environment
.children[0] // db
.children.find(n => n.type === 'viewDir') // parent node
.children.find(n => n.type === 'tableDir') // parent node
.children.find(t => t.name === name)
break

Loading…
Cancel
Save