Remove some todos
This commit is contained in:
parent
17590cb5e6
commit
e6cccaee6d
|
@ -85,7 +85,7 @@ export const deriveStores = (context: StoreContext): DerivedDatasourceStore => {
|
||||||
// Certain datasources like queries use primitives.
|
// Certain datasources like queries use primitives.
|
||||||
Object.keys(schema || {}).forEach(key => {
|
Object.keys(schema || {}).forEach(key => {
|
||||||
if (typeof schema[key] !== "object") {
|
if (typeof schema[key] !== "object") {
|
||||||
schema[key] = { type: schema[key] } as any // TODO
|
schema[key] = { name: key, type: schema[key] }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import {
|
||||||
|
|
||||||
export type UIFieldSchema = FieldSchema &
|
export type UIFieldSchema = FieldSchema &
|
||||||
BasicViewFieldMetadata & {
|
BasicViewFieldMetadata & {
|
||||||
related: { field: string; subField: string }
|
related?: { field: string; subField: string }
|
||||||
columns?: Record<string, UIRelationSchemaField>
|
columns?: Record<string, UIRelationSchemaField>
|
||||||
cellRenderType?: string
|
cellRenderType?: string
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue