Sort type can change. Removed falsey check.
This commit is contained in:
parent
b29dadb285
commit
25ef6599e6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue