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,14 +163,12 @@ class SideNav extends React.Component {
} }
handleFilterButtonContextMenu (event) { handleFilterButtonContextMenu (event) {
const { location, data } = this.props const { data } = this.props
if (location.pathname === '/trashed') { const entries = data.trashedSet.toJS()
const entries = data.trashedSet.toJS() const menu = Menu.buildFromTemplate([
const menu = Menu.buildFromTemplate([ { label: 'Empty Trash', click: () => this.emptyTrash(entries) }
{ label: 'Empty Trash', click: () => this.emptyTrash(entries) } ])
]) menu.popup()
menu.popup()
}
} }
render () { render () {