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