1
0
Fork 0
mirror of synced 2024-10-05 20:44:47 +13:00

Fixing issue brought up by some unit tests.

This commit is contained in:
mike12345567 2023-10-06 13:32:12 +01:00
parent a3df861046
commit bc17bc43fa

View file

@ -60,6 +60,9 @@ function userColumnMapping(column: string, options: SearchParams) {
// maps through the search parameters to check if any of the inputs are invalid
// based on the table schema, converts them to something that is valid.
export function searchInputMapping(table: Table, options: SearchParams) {
if (!table?.schema) {
return options
}
for (let [key, column] of Object.entries(table.schema)) {
switch (column.type) {
case FieldType.BB_REFERENCE: