From aa07af596be8ef9bed524aab25fbccb9d40311f4 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 31 Dec 2024 12:24:26 +0100 Subject: [PATCH] Fix types --- .../src/components/grid/stores/datasources/nonPlus.ts | 2 +- .../src/components/grid/stores/datasources/table.ts | 2 +- .../src/components/grid/stores/datasources/viewV2.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend-core/src/components/grid/stores/datasources/nonPlus.ts b/packages/frontend-core/src/components/grid/stores/datasources/nonPlus.ts index ae8f187278..6e81ff3e48 100644 --- a/packages/frontend-core/src/components/grid/stores/datasources/nonPlus.ts +++ b/packages/frontend-core/src/components/grid/stores/datasources/nonPlus.ts @@ -122,7 +122,7 @@ export const initialise = (context: StoreContext) => { } $fetch?.update({ sortOrder: $sort.order || SortOrder.ASCENDING, - sortColumn: $sort.column, + sortColumn: $sort.column ?? undefined, }) }) ) diff --git a/packages/frontend-core/src/components/grid/stores/datasources/table.ts b/packages/frontend-core/src/components/grid/stores/datasources/table.ts index e52faef5cc..27fa638596 100644 --- a/packages/frontend-core/src/components/grid/stores/datasources/table.ts +++ b/packages/frontend-core/src/components/grid/stores/datasources/table.ts @@ -139,7 +139,7 @@ export const initialise = (context: StoreContext) => { } $fetch.update({ sortOrder: $sort.order || SortOrder.ASCENDING, - sortColumn: $sort.column, + sortColumn: $sort.column ?? undefined, }) }) ) diff --git a/packages/frontend-core/src/components/grid/stores/datasources/viewV2.ts b/packages/frontend-core/src/components/grid/stores/datasources/viewV2.ts index 6a788d3ec6..4dc5a44fd5 100644 --- a/packages/frontend-core/src/components/grid/stores/datasources/viewV2.ts +++ b/packages/frontend-core/src/components/grid/stores/datasources/viewV2.ts @@ -187,7 +187,7 @@ export const initialise = (context: StoreContext) => { } $fetch.update({ sortOrder: $sort.order, - sortColumn: $sort.column, + sortColumn: $sort.column ?? undefined, }) }) )