Skip to content

Commit

Permalink
Vislib legend toggle broken (elastic#59736) (elastic#59893)
Browse files Browse the repository at this point in the history
Closes: elastic#59254

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
alexwizp and elasticmachine committed Mar 12, 2020
1 parent 9fb405f commit bb9ee41
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 bb9ee41

Please sign in to comment.