Remove some todos

This commit is contained in:
Adria Navarro 2024-12-24 11:10:55 +01:00
parent 17590cb5e6
commit e6cccaee6d
2 changed files with 2 additions and 2 deletions

View File

@ -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] }
}
})

View File

@ -7,7 +7,7 @@ import {
export type UIFieldSchema = FieldSchema &
BasicViewFieldMetadata & {
related: { field: string; subField: string }
related?: { field: string; subField: string }
columns?: Record<string, UIRelationSchemaField>
cellRenderType?: string
}