diff --git a/src/frontend/src/components/inputGlobalComponent/index.tsx b/src/frontend/src/components/inputGlobalComponent/index.tsx index 92e24f42b..4d20e8132 100644 --- a/src/frontend/src/components/inputGlobalComponent/index.tsx +++ b/src/frontend/src/components/inputGlobalComponent/index.tsx @@ -35,7 +35,8 @@ export default function InputGlobalComponent({ if (data) if ( ((globalVariablesEntries && - !globalVariablesEntries.includes(data.value))||!globalVariablesEntries) && + !globalVariablesEntries.includes(data.value)) || + !globalVariablesEntries) && data.load_from_db ) { setTimeout(() => { @@ -43,7 +44,7 @@ export default function InputGlobalComponent({ setDb(false); }, 100); } - }, [globalVariablesEntries,data]); + }, [globalVariablesEntries, data]); useEffect(() => { if (!data.value && data.display_name) {