Skip to content

Commit 7853eb3

Browse files
[autofix.ci] apply automated fixes
1 parent bf41739 commit 7853eb3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • src/frontend/src/components/core/parameterRenderComponent/components/inputGlobalComponent

src/frontend/src/components/core/parameterRenderComponent/components/inputGlobalComponent/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,12 @@ export default function InputGlobalComponent({
116116

117117
let variableOptions = typedGlobalVariables.map((variable) => variable.name);
118118

119-
if (loadFromDb && currentValue && !valueExists && !variableOptions.includes(currentValue)) {
119+
if (
120+
loadFromDb &&
121+
currentValue &&
122+
!valueExists &&
123+
!variableOptions.includes(currentValue)
124+
) {
120125
variableOptions = [...variableOptions, currentValue];
121126
}
122127

0 commit comments

Comments
 (0)