1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00

Sort type can change. Removed falsey check.

This commit is contained in:
Mel O'Hagan 2022-09-23 09:30:05 +01:00
parent 1959acd4c1
commit 900050fe55

View file

@ -136,14 +136,12 @@ export default class DataFetch {
}
// Determine what sort type to use
if (!this.options.sortType) {
let sortType = "string"
if (sortColumn) {
const type = schema?.[sortColumn]?.type
sortType = type === "number" ? "number" : "string"
}
this.options.sortType = sortType
let sortType = "string"
if (sortColumn) {
const type = schema?.[sortColumn]?.type
sortType = type === "number" ? "number" : "string"
}
this.options.sortType = sortType
// Build the lucene query
let query = this.options.query