Skip to content

Commit

Permalink
Fix: update sort field name and empty check
Browse files Browse the repository at this point in the history
  • Loading branch information
snf2ye committed Nov 13, 2023
1 parent 35e9914 commit 09559aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sagas/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -790,8 +790,8 @@ export function* previewData({ payload }: any): any {
const queryDataRequest = {
offset: queryState.page * queryState.rowsPerPage,
limit: queryState.rowsPerPage,
sort: queryState.orderProperty === undefined ? DbColumns.ROW_ID : `${queryState.orderProperty}`,
sortDirection:
sort: _.isEmpty(queryState.orderProperty) ? DbColumns.ROW_ID : `${queryState.orderProperty}`,
direction:
queryState.orderDirection === undefined
? SqlSortDirection.Asc
: `${queryState.orderDirection}`,
Expand Down

0 comments on commit 09559aa

Please sign in to comment.