Remove todo
This commit is contained in:
parent
6c17d3e257
commit
5add833603
|
@ -3,7 +3,6 @@ import { getDatasourceDefinition, getDatasourceSchema } from "../../../fetch"
|
||||||
import { enrichSchemaWithRelColumns, memo } from "../../../utils"
|
import { enrichSchemaWithRelColumns, memo } from "../../../utils"
|
||||||
import { cloneDeep } from "lodash"
|
import { cloneDeep } from "lodash"
|
||||||
import {
|
import {
|
||||||
FieldSchema,
|
|
||||||
Row,
|
Row,
|
||||||
SaveRowRequest,
|
SaveRowRequest,
|
||||||
SaveTableRequest,
|
SaveTableRequest,
|
||||||
|
@ -23,7 +22,7 @@ interface DatasourceStore {
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DerivedDatasourceStore {
|
interface DerivedDatasourceStore {
|
||||||
schema: Readable<Record<string, FieldSchema> | null>
|
schema: Readable<Record<string, UIFieldSchema> | null>
|
||||||
enrichedSchema: Readable<Record<string, UIFieldSchema> | null>
|
enrichedSchema: Readable<Record<string, UIFieldSchema> | null>
|
||||||
hasBudibaseIdentifiers: Readable<boolean>
|
hasBudibaseIdentifiers: Readable<boolean>
|
||||||
}
|
}
|
||||||
|
@ -291,7 +290,7 @@ export const createActions = (context: StoreContext): ActionDatasourceStore => {
|
||||||
newSchema[column] = {
|
newSchema[column] = {
|
||||||
...$schema[column],
|
...$schema[column],
|
||||||
...$schemaMutations[column],
|
...$schemaMutations[column],
|
||||||
} as UIFieldSchema // TODO
|
}
|
||||||
if ($subSchemaMutations[column]) {
|
if ($subSchemaMutations[column]) {
|
||||||
newSchema[column].columns ??= {}
|
newSchema[column].columns ??= {}
|
||||||
for (const fieldName of Object.keys($subSchemaMutations[column])) {
|
for (const fieldName of Object.keys($subSchemaMutations[column])) {
|
||||||
|
|
Loading…
Reference in New Issue