Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(j-s): Order case files in descending created order #17413

Merged
merged 6 commits into from
Jan 17, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
feat(j-s): Order case files in descending created order
unakb committed Jan 6, 2025

Verified

This commit was signed with the committer’s verified signature. The key has expired.
renovate-bot Mend Renovate
commit 29a8fc4a5a105d8b8fce141fa6958b379479c996
Original file line number Diff line number Diff line change
@@ -322,6 +322,7 @@ export const include: Includeable[] = [
model: CaseFile,
as: 'caseFiles',
required: false,
order: [['created', 'DESC']],
where: { state: { [Op.not]: CaseFileState.DELETED } },
separate: true,
},
Original file line number Diff line number Diff line change
@@ -213,6 +213,7 @@ export const include: Includeable[] = [
model: CaseFile,
as: 'caseFiles',
required: false,
order: [['created', 'DESC']],
where: {
state: { [Op.not]: CaseFileState.DELETED },
category: [
Original file line number Diff line number Diff line change
@@ -35,8 +35,8 @@ const CaseFileTable: FC<Props> = ({
const { formatMessage } = useIntl()

const { sortedData, requestSort, getClassNamesFor, isActiveColumn } = useSort(
'name',
'ascending',
'created',
'descending',
caseFiles,
(entry, column) => entry[column] as string | null | undefined,
)