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
1 changed files with 3 additions and 0 deletions

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: