Skip to content

Commit

Permalink
fix: check if resetVariable is truthy before adding it to updateNode
Browse files Browse the repository at this point in the history
  • Loading branch information
buckhalt committed Jun 24, 2024
1 parent d18072a commit bfed93f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/containers/CategoricalList/CategoricalListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ const CategoricalListItem = (props) => {
{},
{
[variable]: value,
// because category can now be promptVariable or
// otherVariable we need to reset the alternate.
[resetVariable]: null,
// reset is used to clear the variable when a node is moved to a different bin
...(!!resetVariable && { [resetVariable]: null }),
},
'drop',
);
Expand Down

0 comments on commit bfed93f

Please sign in to comment.