Ensure we don't false-positive flag external tables with view_ in their names as views
This commit is contained in:
parent
9c312826ca
commit
29081cea1c
|
@ -830,7 +830,7 @@ export const getActionBindings = (actions, actionId) => {
|
||||||
* @return {{schema: Object, table: Object}}
|
* @return {{schema: Object, table: Object}}
|
||||||
*/
|
*/
|
||||||
export const getSchemaForDatasourcePlus = (resourceId, options) => {
|
export const getSchemaForDatasourcePlus = (resourceId, options) => {
|
||||||
const isViewV2 = resourceId?.includes("view_")
|
const isViewV2 = resourceId?.startsWith("view_")
|
||||||
const datasource = isViewV2
|
const datasource = isViewV2
|
||||||
? {
|
? {
|
||||||
type: "viewV2",
|
type: "viewV2",
|
||||||
|
|
Loading…
Reference in New Issue