Do not set sort column if display is formula (#9378)
* Unset sort column if it is formula * Null safety
This commit is contained in:
parent
1dfab80d73
commit
a193d7fcaa
|
@ -681,6 +681,12 @@ export class ExternalRequest {
|
|||
config,
|
||||
table
|
||||
)
|
||||
//if the sort column is a formula, remove it
|
||||
for (let sortColumn of Object.keys(sort || {})) {
|
||||
if (table.schema[sortColumn]?.type === "formula") {
|
||||
delete sort?.[sortColumn]
|
||||
}
|
||||
}
|
||||
filters = buildFilters(id, filters || {}, table)
|
||||
const relationships = this.buildRelationships(table)
|
||||
// clean up row on ingress using schema
|
||||
|
|
Loading…
Reference in New Issue