From 45d6db6eb9bcc26c46043d6f2e6443abb113448b Mon Sep 17 00:00:00 2001 From: Hunter Trujillo Date: Mon, 6 Mar 2017 17:44:49 -0700 Subject: [PATCH] Clear filter smartly --- ui/src/admin/components/FilterBar.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/admin/components/FilterBar.js b/ui/src/admin/components/FilterBar.js index 26b2deddf9..42f6b13e73 100644 --- a/ui/src/admin/components/FilterBar.js +++ b/ui/src/admin/components/FilterBar.js @@ -17,6 +17,10 @@ class FilterBar extends Component { ) } + componentWillUnmount() { + this.props.onFilter('') + } + render() { return (