Use selected view table ID to check if a datasource contains the selected view V2
This commit is contained in:
parent
db28b29cf7
commit
7505eccbbc
|
@ -171,10 +171,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for a matching viewV2
|
// Check for a matching viewV2
|
||||||
const selectedViewV2 = viewsV2.selected?.name
|
const viewV2Table = options.find(x => x._id === viewsV2.selected?.tableId)
|
||||||
const viewV2Table = options.find(table => {
|
|
||||||
return table.views?.[selectedViewV2] != null
|
|
||||||
})
|
|
||||||
return viewV2Table != null
|
return viewV2Table != null
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue