Skip to content

Commit

Permalink
Merge pull request #6290 from dougmacknz/6210-fix-object-set
Browse files Browse the repository at this point in the history
Set expanded stores to objects instead of arrays
  • Loading branch information
shilman committed Apr 1, 2019
1 parent 6a72b4a commit a49605a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ui/src/components/sidebar/treeview/treeview.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ const getPropsForTree = memoize(50)(({ dataset, selectedId }) => {
class TreeState extends PureComponent {
state = {
// We maintain two sets of expanded nodes, so we remember which were expanded if we clear the filter
unfilteredExpanded: [],
filteredExpanded: [],
unfilteredExpanded: {},
filteredExpanded: {},
filter: null,
lastSelectedId: null,
};
Expand Down

0 comments on commit a49605a

Please sign in to comment.