Skip to content

Commit

Permalink
[DUOS-2761] Remove Duplicate 'Data Use Agreement' Tabs (#2370)
Browse files Browse the repository at this point in the history
  • Loading branch information
hams7504 authored Oct 27, 2023
1 parent c109ec2 commit d073bea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/dar_application/DataAccessRequestApplication.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ const DataAccessRequestApplication = (props) => {
setDatasets(datasets);
});
if (!props.readOnlyMode) {
ApplicationTabs.push({ name: 'Data Use Agreement' });
setApplicationTabs(ApplicationTabs);
const updatedTabs = [...ApplicationTabs, { name: 'Data Use Agreement' }];
setApplicationTabs(updatedTabs);
}
}, [formData.datasetIds, props.readOnlyMode]);

Expand Down

0 comments on commit d073bea

Please sign in to comment.