fix(xo-web/backup-ng/new): fix empty srs & remotes

Send `undefined` instead of `false`.
This commit is contained in:
Julien Fontanet 2018-04-16 17:26:27 +02:00
parent 2714ccff38
commit d800db5d09

View File

@ -138,9 +138,13 @@ export default [
...getNewSettings(state.newSchedules),
},
remotes:
(state.deltaMode || state.backupMode) &&
constructPattern(state.remotes),
srs: (state.crMode || state.drMode) && constructPattern(state.srs),
state.deltaMode || state.backupMode
? constructPattern(state.remotes)
: undefined,
srs:
state.crMode || state.drMode
? constructPattern(state.srs)
: undefined,
vms: state.smartMode
? state.vmsSmartPattern
: constructPattern(state.vms),