From cc3058aa6dc83b09b172232c56fdcaa4757a3357 Mon Sep 17 00:00:00 2001 From: Mathias Oppedal Heggelund <98742460+mheggelund@users.noreply.github.com> Date: Thu, 17 Oct 2024 11:51:10 +0200 Subject: [PATCH] fix: gde bugs (#346) * chore: Set local gde state to empty on sucsessfull add row. * chore: Add equinor code to gde table. --- .../GrossDepositionEnviromentGroup.tsx | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/src/components/GrossDepositionEnviroment/GrossDepositionEnviromentGroup/GrossDepositionEnviromentGroup.tsx b/src/components/GrossDepositionEnviroment/GrossDepositionEnviromentGroup/GrossDepositionEnviromentGroup.tsx index 59c606e..e393698 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(); + } } }; @@ -149,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 && ( )}