Skip to content

Commit

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

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

const panes = Object.keys(datasetsByYear).map((dataset) => ({
const panes = Object.keys(datasets).map((dataset) => ({
menuItem: dataset === 'undefined' ? 'Missing' : dataset,
render: () => (
<Tab.Pane>
<Accordion>
{datasetsByYear[dataset].map((dataset, index) => {
{datasets[dataset].map((dataset, index) => {
const { resourceTemporalExtentDetails } = dataset;
return (
<React.Fragment key={index}>
Expand Down

0 comments on commit cb2ea49

Please sign in to comment.