Skip to content
Snippets Groups Projects
Commit 3ef37fa8 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

close the accordion when you click on it if it's already open.

parent 7a4d3f27
Branches
Tags
No related merge requests found
......@@ -28,6 +28,9 @@ export default class CardFilters extends Component {
async databaseClicked(id) {
if (this.props.cardsFilter.database !== id) {
this.props.dispatch(setCardsFilter({database: id, table: null}));
} else {
// clicking an already open database closes it
this.props.dispatch(setCardsFilter({database: null, table: null}));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment