1
0
Fork 0
mirror of synced 2024-09-12 23:43:09 +12:00

Merge pull request #13682 from Budibase/fix/external-tables-with-view-in-name

Fix schema generation for external tables with view_ in their name
This commit is contained in:
Andrew Kingston 2024-05-14 15:06:51 +01:00 committed by GitHub
commit 3b93b57aa2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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",