From 547f4f33532ea75d4d8712440dc9940edacc56db Mon Sep 17 00:00:00 2001 From: Henri Nieminen <118905702+henrinie-nc@users.noreply.github.com> Date: Tue, 11 Jun 2024 10:20:05 +0300 Subject: [PATCH] change lease ordering fields (#488) change is matching change in API --- src/leases/helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/leases/helpers.ts b/src/leases/helpers.ts index b811536c5..8c6261f1e 100644 --- a/src/leases/helpers.ts +++ b/src/leases/helpers.ts @@ -2783,13 +2783,13 @@ export const mapLeaseSearchFilters = (query: Record): Record `-${key}`); + searchQuery.ordering = searchQuery.ordering.map((key: string) => `-${key}`); } delete searchQuery.sort_key;