Skip to content

Commit

Permalink
1674 - client - Don’t show expression switch button if a switch is di…
Browse files Browse the repository at this point in the history
…sabled
  • Loading branch information
ivicac committed Dec 3, 2024
1 parent e5debd4 commit 73c2377
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ const Property = ({
controlType,
custom,
description,
expressionEnabled,
hidden,
label,
languageId,
Expand Down Expand Up @@ -737,18 +738,20 @@ const Property = ({
setShowInputTypeSwitchButton(false);
}

if (controlType === 'JSON_SCHEMA_BUILDER') {
setShowInputTypeSwitchButton(true);
}
if (expressionEnabled) {
if (controlType === 'JSON_SCHEMA_BUILDER') {
setShowInputTypeSwitchButton(true);
}

if (controlType === 'SELECT') {
setShowInputTypeSwitchButton(true);
if (controlType === 'SELECT') {
setShowInputTypeSwitchButton(true);
}
}

if (controlType === 'NULL') {
setShowInputTypeSwitchButton(false);
}
}, [controlType]);
}, [controlType, expressionEnabled]);

// update propertyParameterValue when workflow definition changes
useEffect(() => {
Expand Down

0 comments on commit 73c2377

Please sign in to comment.