From 6b2b1a2dba06689a691b0c49f5b747a94190d6ef Mon Sep 17 00:00:00 2001 From: mheggelund Date: Thu, 17 Oct 2024 09:53:55 +0200 Subject: [PATCH] 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(); + } } };