fix(xo-web/new/sr): no redirection if the SR creation failed or canceled (#3853)

Fixes #3843
This commit is contained in:
Rajaa.BARHTAOUI 2019-01-14 10:53:11 +01:00 committed by Pierre Donias
parent 76f9017482
commit 1ed2a6b620
2 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@
### Bug fixes
- [New SR] No redirection if the SR creation failed or canceled [#3843](https://github.com/vatesfr/xen-orchestra/issues/3843) (PR [#3853](https://github.com/vatesfr/xen-orchestra/pull/3853))
### Released packages
- xo-server v5.34.0

View File

@ -212,7 +212,7 @@ const typeGroups = {
isosr: ['local', 'nfsiso', 'smb'],
}
const getSrPath = id => `/srs/${id}`
const getSrPath = id => (id !== undefined ? `/srs/${id}` : undefined)
// ===================================================================