Skip to content

Commit

Permalink
Undo some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Feb 9, 2023
1 parent e215775 commit 7d1e80b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/ItemView/Datasets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,7 @@ const Datasets = (props) => {
[children],
);

const datasets = groupBy(sortedDatasets, 'publicationYearForResource');

const datasetsByYear = {};
delete Object.assign(datasetsByYear, datasets, {
Missing: datasets['undefined'],
})['undefined'];
const datasetsByYear = groupBy(sortedDatasets, 'publicationYearForResource');

const panes = Object.keys(datasetsByYear).map((dataset) => ({
menuItem: dataset,
Expand Down

0 comments on commit 7d1e80b

Please sign in to comment.