1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Update automatic dataprovider hot reloading to support views

This commit is contained in:
Andrew Kingston 2023-08-24 16:20:32 +01:00
parent d109411ed8
commit 8269ecf237
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -81,7 +81,7 @@ export const createDataSourceStore = () => {
// Fetch related table IDs from table schema
let schema
if (options.invalidateRelationships) {
if (options.invalidateRelationships && !dataSourceId?.includes("view_")) {
try {
const definition = await API.fetchTableDefinition(dataSourceId)
schema = definition?.schema