From 6b2b1a2dba06689a691b0c49f5b747a94190d6ef Mon Sep 17 00:00:00 2001 From: mheggelund Date: Thu, 17 Oct 2024 09:53:55 +0200 Subject: [PATCH 1/2] chore: Set local gde state to empty on sucsessfull add row. --- .../GrossDepositionEnviromentGroup.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/GrossDepositionEnviroment/GrossDepositionEnviromentGroup/GrossDepositionEnviromentGroup.tsx b/src/components/GrossDepositionEnviroment/GrossDepositionEnviromentGroup/GrossDepositionEnviromentGroup.tsx index 59c606e..92bb120 100644 --- a/src/components/GrossDepositionEnviroment/GrossDepositionEnviromentGroup/GrossDepositionEnviromentGroup.tsx +++ b/src/components/GrossDepositionEnviroment/GrossDepositionEnviromentGroup/GrossDepositionEnviromentGroup.tsx @@ -113,7 +113,10 @@ export const GrossDepositionEnviromentGroup = ({ id: id, requestBody: postRequestBody, }); - if (rowUpload.success) handleGdeDialog(); + if (rowUpload.success) { + setGdeObject(defaultGdeData); + handleGdeDialog(); + } } }; From 59df60d389ee493a4136e2e65d46f3be6fcb32d8 Mon Sep 17 00:00:00 2001 From: mheggelund Date: Thu, 17 Oct 2024 10:40:12 +0200 Subject: [PATCH 2/2] chore: Add equinor code to gde table. --- .../GrossDepositionEnviromentGroup.tsx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/components/GrossDepositionEnviroment/GrossDepositionEnviromentGroup/GrossDepositionEnviromentGroup.tsx b/src/components/GrossDepositionEnviroment/GrossDepositionEnviromentGroup/GrossDepositionEnviromentGroup.tsx index 92bb120..e393698 100644 --- a/src/components/GrossDepositionEnviroment/GrossDepositionEnviromentGroup/GrossDepositionEnviromentGroup.tsx +++ b/src/components/GrossDepositionEnviroment/GrossDepositionEnviromentGroup/GrossDepositionEnviromentGroup.tsx @@ -152,14 +152,24 @@ export const GrossDepositionEnviromentGroup = ({ /> - {row.grossDepEnv.identifier} - {row.depEnv.identifier} - {row.subenv.identifier} + + {row.grossDepEnv.equinorCode + + ' ' + + row.grossDepEnv.identifier} + + + {row.grossDepEnv.equinorCode + ' ' + row.depEnv.identifier} + + + {row.grossDepEnv.equinorCode + ' ' + row.subenv.identifier} + {row.architecturalElements.length > 0 && (
    {row.architecturalElements.map((a) => ( -
  • {a.identifier}
  • +
  • + {a.equinorCode + ' ' + a.identifier} +
  • ))}
)}