This commit is contained in:
Adria Navarro 2024-05-02 12:15:23 +01:00
parent 2e4b69e381
commit 34b6581aed
1 changed files with 4 additions and 3 deletions

View File

@ -86,17 +86,18 @@ export function searchInputMapping(table: Table, options: RowSearchParams) {
} }
for (let [key, column] of Object.entries(table.schema)) { for (let [key, column] of Object.entries(table.schema)) {
switch (column.type) { switch (column.type) {
case FieldType.BB_REFERENCE_SINGLE: case FieldType.BB_REFERENCE_SINGLE: {
const subtype = column.subtype const subtype = column.subtype
switch (subtype) { switch (subtype) {
case BBReferenceFieldSubType.USER: { case BBReferenceFieldSubType.USER:
userColumnMapping(key, options) userColumnMapping(key, options)
break break
}
default: default:
utils.unreachable(subtype) utils.unreachable(subtype)
} }
break break
}
case FieldType.BB_REFERENCE: { case FieldType.BB_REFERENCE: {
const subtype = column.subtype const subtype = column.subtype
switch (subtype) { switch (subtype) {