Skip to content

Commit 6cdbdd6

Browse files
committed
fix(navigation): keep parent table expanded when opening a view
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
1 parent f998888 commit 6cdbdd6

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/modules/navigation/partials/NavigationTableItem.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,13 @@ export default {
214214
},
215215
},
216216
watch: {
217-
activeView() {
218-
if (!this.isParentOfActiveView && this.activeView?.tableId === this.table?.id) {
219-
this.isParentOfActiveView = true
220-
}
217+
activeView: {
218+
immediate: true,
219+
handler() {
220+
if (!this.isParentOfActiveView && this.activeView?.tableId === this.table?.id) {
221+
this.isParentOfActiveView = true
222+
}
223+
},
221224
},
222225
filterString() {
223226
if (!this.isParentOfActiveView && this.filterString && !this.table.title.toLowerCase().includes(this.filterString.toLowerCase())) {

0 commit comments

Comments
 (0)