Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
davidlougheed committed Oct 16, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent ff3a18d commit bf1b4f5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/js/components/Provenance/Tables/PublicationsTable.tsx
Original file line number Diff line number Diff line change
@@ -87,7 +87,7 @@ const PublicationsTable = ({ publications }: PublicationsTableProps) => {
if (!b.dates?.length) return 0;
return 1; // Sort blank entries after
} else if (!b.dates?.length) {
return -1; // Sort blank entries after
return -1; // Sort blank entries after
} else {
return Date.parse(a.dates[0].date) - Date.parse(b.dates[0].date);
}
@@ -104,8 +104,10 @@ const PublicationsTable = ({ publications }: PublicationsTableProps) => {
dataIndex: 'identifier.identifierSource',
render: (_, { identifier: { identifierSource } }) => t(identifierSource),
sorter: (a, b) => a.identifier.identifierSource.localeCompare(b.identifier.identifierSource),
filters: Array.from(new Set(publications.map(p => p.identifier.identifierSource)))
.map((v) => ({ text: v, value: v })),
filters: Array.from(new Set(publications.map((p) => p.identifier.identifierSource))).map((v) => ({
text: v,
value: v,
})),
},
] as ColumnsType<PrimaryPublication>,
[td, publications]

0 comments on commit bf1b4f5

Please sign in to comment.