From e6cccaee6d708274f05de684457879b01911d4b6 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 24 Dec 2024 11:10:55 +0100 Subject: [PATCH] Remove some todos --- packages/frontend-core/src/components/grid/stores/datasource.ts | 2 +- packages/types/src/ui/stores/grid/table.ts | 2 +- 2 files changed, 2 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 721b964626..17ce098555 100644 --- a/packages/frontend-core/src/components/grid/stores/datasource.ts +++ b/packages/frontend-core/src/components/grid/stores/datasource.ts @@ -85,7 +85,7 @@ export const deriveStores = (context: StoreContext): DerivedDatasourceStore => { // Certain datasources like queries use primitives. Object.keys(schema || {}).forEach(key => { if (typeof schema[key] !== "object") { - schema[key] = { type: schema[key] } as any // TODO + schema[key] = { name: key, type: schema[key] } } }) diff --git a/packages/types/src/ui/stores/grid/table.ts b/packages/types/src/ui/stores/grid/table.ts index 6160a05640..8975ef4cfc 100644 --- a/packages/types/src/ui/stores/grid/table.ts +++ b/packages/types/src/ui/stores/grid/table.ts @@ -7,7 +7,7 @@ import { export type UIFieldSchema = FieldSchema & BasicViewFieldMetadata & { - related: { field: string; subField: string } + related?: { field: string; subField: string } columns?: Record cellRenderType?: string }