Skip to content

Commit

Permalink
Vislib legend toggle broken
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwizp committed Mar 10, 2020
1 parent f1272b5 commit 4af7817
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ function prepSetParams(key: PersistedStateKey, value: any, path: PersistedStateP
// key must be the value, set the entire state using it
if (value === undefined && (isPlainObject(key) || path.length > 0)) {
// setting entire tree, swap the key and value to write to the state
return {
value: key,
key: undefined,
};
value = key;
key = undefined;
}

// ensure the value being passed in is never mutated
Expand Down

0 comments on commit 4af7817

Please sign in to comment.