1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Removed useless url route check

This commit is contained in:
pfftdammitchris
2018-02-19 12:41:36 -08:00
parent e6ae45f133
commit c2afdba659

View File

@@ -163,15 +163,13 @@ class SideNav extends React.Component {
}
handleFilterButtonContextMenu (event) {
const { location, data } = this.props
if (location.pathname === '/trashed') {
const { data } = this.props
const entries = data.trashedSet.toJS()
const menu = Menu.buildFromTemplate([
{ label: 'Empty Trash', click: () => this.emptyTrash(entries) }
])
menu.popup()
}
}
render () {
const { data, location, config, dispatch } = this.props