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, }) }) )