From d073beacf404247f11e2147f6573f57e3315cbf6 Mon Sep 17 00:00:00 2001 From: Hamsini Malli Date: Fri, 27 Oct 2023 09:51:05 -0400 Subject: [PATCH] [DUOS-2761] Remove Duplicate 'Data Use Agreement' Tabs (#2370) --- src/pages/dar_application/DataAccessRequestApplication.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/dar_application/DataAccessRequestApplication.js b/src/pages/dar_application/DataAccessRequestApplication.js index fe8d19fe7..9e6acff66 100644 --- a/src/pages/dar_application/DataAccessRequestApplication.js +++ b/src/pages/dar_application/DataAccessRequestApplication.js @@ -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]);