Fixing issue brought up by some unit tests.
This commit is contained in:
parent
a3df861046
commit
bc17bc43fa
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue