From c6d1b2be5b63ba43dcbdd98b08fe770f6e37b5c2 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 23 Dec 2024 10:03:08 +0100 Subject: [PATCH] Use types --- .../frontend-core/src/components/grid/stores/datasource.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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],