Compare commits

...

1 Commits

Author SHA1 Message Date
BARHTAOUI
03cda4d190 feat(xo-web/home): remove the needless condition when editing backup filter 2020-06-29 12:29:01 +02:00

View File

@@ -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,
},
})