1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

Use selected view table ID to check if a datasource contains the selected view V2

This commit is contained in:
Andrew Kingston 2023-08-30 15:44:30 +01:00
parent db28b29cf7
commit 7505eccbbc

View file

@ -171,10 +171,7 @@
}
// Check for a matching viewV2
const selectedViewV2 = viewsV2.selected?.name
const viewV2Table = options.find(table => {
return table.views?.[selectedViewV2] != null
})
const viewV2Table = options.find(x => x._id === viewsV2.selected?.tableId)
return viewV2Table != null
}
</script>