Skip to content

Commit

Permalink
889 - when selecting no value inside BOOLEAN Select save it as null
Browse files Browse the repository at this point in the history
  • Loading branch information
kresimir-coko authored and ivicac committed Jun 19, 2024
1 parent 6048312 commit 3ce26a3
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -435,13 +435,19 @@ const Property = ({

setPropertyParameterValue(value);

let actualValue: string | boolean | null = type === 'BOOLEAN' ? value === 'true' : value;

if (value === 'null') {
actualValue = null;
}

saveProperty({
currentComponent,
path,
setCurrentComponent,
type,
updateWorkflowNodeParameterMutation,
value: type === 'BOOLEAN' ? value === 'true' : value,
value: actualValue,
workflowId: workflow.id,
});
};
Expand Down

0 comments on commit 3ce26a3

Please sign in to comment.