diff --git a/src/containers/CategoricalList/CategoricalListItem.js b/src/containers/CategoricalList/CategoricalListItem.js index 3acd9d9f0..12c15486b 100644 --- a/src/containers/CategoricalList/CategoricalListItem.js +++ b/src/containers/CategoricalList/CategoricalListItem.js @@ -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', );