Intial relatedColumns utils conversion

This commit is contained in:
Adria Navarro 2024-12-23 10:01:33 +01:00
parent 10979c43f7
commit f114f1529b
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { FieldType, RelationshipType } from "@budibase/types"
import { FieldType, RelationshipType, UIFieldSchema } from "@budibase/types"
import { Helpers } from "@budibase/bbui"
const columnTypeManyTypeOverrides = {
@ -36,7 +36,9 @@ const columnTypeManyParser = {
[FieldType.ARRAY]: value => Array.from(new Set(value)),
}
export function enrichSchemaWithRelColumns(schema) {
export function enrichSchemaWithRelColumns(
schema: Record<string, UIFieldSchema>
) {
if (!schema) {
return
}