1
0
Fork 0
mirror of synced 2024-10-06 04:54:52 +13:00

Do not set sort column if display is formula (#9378)

* Unset sort column if it is formula

* Null safety
This commit is contained in:
melohagan 2023-01-19 13:32:45 +00:00 committed by GitHub
parent 1dfab80d73
commit a193d7fcaa

View file

@ -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