fix(xo-server/collection/redis): ignore undefined values (#3388)

Fixes #3385
This commit is contained in:
Julien Fontanet
2018-09-05 15:18:47 +02:00
committed by Pierre Donias
parent 395cbb33ef
commit 070213dd7f
2 changed files with 4 additions and 2 deletions

View File

@@ -17,7 +17,7 @@
- [New XOSAN] Fix error sometimes occurring when selecting the pool (PR [#3370](https://github.com/vatesfr/xen-orchestra/pull/3370))
- [New VM] Selecting multiple VMs and clicking Create then Cancel used to redirect to Home [#3268](https://github.com/vatesfr/xen-orchestra/issues/3268) (PR [#3371](https://github.com/vatesfr/xen-orchestra/pull/3371))
- [Remotes] `cannot read 'properties' of undefined` error (PR [#3382](https://github.com/vatesfr/xen-orchestra/pull/3382))
- [Servers] Various issues when adding a new server [#3385](https://github.com/vatesfr/xen-orchestra/issues/3385) (PR [#3388](https://github.com/vatesfr/xen-orchestra/pull/3388))
### Released packages

View File

@@ -161,7 +161,9 @@ export default class Redis extends Collection {
return
}
params.push(name, value)
if (value !== undefined) {
params.push(name, value)
}
})
const key = `${prefix}:${id}`