diff --git a/packages/frontend-core/src/components/grid/stores/datasource.ts b/packages/frontend-core/src/components/grid/stores/datasource.ts index 8fda936d04..c97ee305ca 100644 --- a/packages/frontend-core/src/components/grid/stores/datasource.ts +++ b/packages/frontend-core/src/components/grid/stores/datasource.ts @@ -6,6 +6,7 @@ import { FieldSchema, SaveTableRequest, UIDatasource, + UIFieldSchema, UpdateViewRequest, ViewV2Type, } from "@budibase/types" @@ -20,7 +21,7 @@ interface DatasourceStore { interface DerivedDatasourceStore { schema: Readable> - enrichedSchema: Readable> + enrichedSchema: Readable> hasBudibaseIdentifiers: Readable } @@ -95,7 +96,7 @@ export const deriveStores = (context: StoreContext): DerivedDatasourceStore => { const schemaWithRelatedColumns = enrichSchemaWithRelColumns($schema) - const enrichedSchema = {} + const enrichedSchema: Record = {} Object.keys(schemaWithRelatedColumns).forEach(field => { enrichedSchema[field] = { ...schemaWithRelatedColumns[field],