Skip to content

Commit

Permalink
Removed extra call of queryString() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Sekachev committed Apr 7, 2021
1 parent 3b79efa commit 21a60f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ function FiltersModalComponent(): JSX.Element {
return { tree, queryString, filter };
})
.filter(({ queryString }) => !!queryString)
.map(({ filter, tree }) => (
.map(({ filter, tree, queryString }) => (
<Menu.Item key={filter.id} onClick={() => setState({ tree, config })}>
{QbUtils.queryString(tree, config)}
{queryString}
</Menu.Item>
))}
</Menu>
Expand Down

0 comments on commit 21a60f1

Please sign in to comment.