From ad0cc67bfc76ce0731d2414ba0f3c97a8d753ccd Mon Sep 17 00:00:00 2001 From: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com> Date: Tue, 1 Apr 2025 12:26:16 -0300 Subject: [PATCH] fix: made global variables apply to fields not overwrite fields on refresh (#7368) Added value check to not overwrite fields --- .../components/inputGlobalComponent/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/components/core/parameterRenderComponent/components/inputGlobalComponent/index.tsx b/src/frontend/src/components/core/parameterRenderComponent/components/inputGlobalComponent/index.tsx index 17c1a41f1..7f88eb2c8 100644 --- a/src/frontend/src/components/core/parameterRenderComponent/components/inputGlobalComponent/index.tsx +++ b/src/frontend/src/components/core/parameterRenderComponent/components/inputGlobalComponent/index.tsx @@ -41,7 +41,8 @@ export default function InputGlobalComponent({ if ( display_name && unavailableFields && - Object.keys(unavailableFields).includes(display_name) + Object.keys(unavailableFields).includes(display_name) && + value === "" ) { return unavailableFields[display_name]; }