feat(xo-web/home): remove unnecessary condition (#5116)
Introduced by f736381933
Backup filter: remove the needless condition to go to the first page.
This commit is contained in:
parent
b6a6694abf
commit
42dd1efb41
@ -924,13 +924,13 @@ export default class Home extends Component {
|
||||
|
||||
_setBackupFilter = backupFilter => {
|
||||
const { pathname, query } = this.props.location
|
||||
const isAll = backupFilter === 'all'
|
||||
this.context.router.push({
|
||||
pathname,
|
||||
query: {
|
||||
...query,
|
||||
backup: isAll ? undefined : backupFilter === 'backedUpVms',
|
||||
p: isAll ? 1 : undefined,
|
||||
backup:
|
||||
backupFilter === 'all' ? undefined : backupFilter === 'backedUpVms',
|
||||
p: 1,
|
||||
s_backup: undefined,
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user