Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jayacryl committed Nov 13, 2024
1 parent ec74712 commit b2e8bc0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions datahub-web-react/src/app/ingest/source/IngestionSourceList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,17 @@ export const IngestionSourceList = () => {
setFocusSourceUrn(undefined);
};

const onChangeSort = (field, order) => {
setSort(
order
? {
sortOrder: order === 'ascend' ? SortOrder.Ascending : SortOrder.Descending,
field,
}
: undefined,
);
};

return (
<>
{!data && loading && <Message type="loading" content="Loading ingestion sources..." />}
Expand Down Expand Up @@ -435,6 +446,7 @@ export const IngestionSourceList = () => {
onView={onView}
onDelete={onDelete}
onRefresh={onRefresh}
onChangeSort={onChangeSort}
/>
<SourcePaginationContainer>
<Pagination
Expand Down

0 comments on commit b2e8bc0

Please sign in to comment.