Skip to content

Commit

Permalink
SqlSortDirection no longer generated
Browse files Browse the repository at this point in the history
  • Loading branch information
snf2ye committed Dec 20, 2023
1 parent 74b9afc commit cc94aff
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 @@ -20,7 +20,7 @@ import _ from 'lodash';
import { RouterRootState } from 'connected-react-router';

import { showNotification } from 'modules/notifications';
import { JobModelJobStatusEnum, SqlSortDirection } from 'generated/tdr';
import { JobModelJobStatusEnum, SqlSortDirectionAscDefault } from 'generated/tdr';
import {
ActionTypes,
Status,
Expand Down Expand Up @@ -792,7 +792,7 @@ export function* previewData({ payload }: any): any {
limit: queryState.rowsPerPage,
sort: _.isEmpty(queryState.orderProperty) ? DbColumns.ROW_ID : `${queryState.orderProperty}`,
direction: _.isEmpty(queryState.orderDirection)
? SqlSortDirection.Asc
? SqlSortDirectionAscDefault.Asc
: `${queryState.orderDirection}`,
filter: _.isEmpty(queryState.filterStatement) ? '' : `${queryState.filterStatement}`,
};
Expand Down

0 comments on commit cc94aff

Please sign in to comment.