From e82d8f482677850a9e5cdf2f9067e7c9c6a6c64c Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Tue, 30 Apr 2024 15:47:52 -0300 Subject: [PATCH] Update InputGlobalComponent to handle unavaliableFields in useGlobalVariablesStore --- src/frontend/src/components/inputGlobalComponent/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/components/inputGlobalComponent/index.tsx b/src/frontend/src/components/inputGlobalComponent/index.tsx index 6bd598778..c6feb8037 100644 --- a/src/frontend/src/components/inputGlobalComponent/index.tsx +++ b/src/frontend/src/components/inputGlobalComponent/index.tsx @@ -125,7 +125,8 @@ export default function InputGlobalComponent({ )} selectedOption={ - data?.node?.template[name].load_from_db ?? false + data?.node?.template[name].load_from_db && + globalVariablesEntries.includes(data?.node?.template[name].value??"") ? data?.node?.template[name].value : "" }