1
0
Fork 0
mirror of synced 2024-08-23 05:51:29 +12:00

Ensure we don't false-positive flag external tables with view_ in their names as views

This commit is contained in:
Andrew Kingston 2024-05-14 10:55:27 +01:00
parent 9c312826ca
commit 29081cea1c

View file

@ -830,7 +830,7 @@ export const getActionBindings = (actions, actionId) => {
* @return {{schema: Object, table: Object}}
*/
export const getSchemaForDatasourcePlus = (resourceId, options) => {
const isViewV2 = resourceId?.includes("view_")
const isViewV2 = resourceId?.startsWith("view_")
const datasource = isViewV2
? {
type: "viewV2",