fix(xo-web/xoa/update): channels is an object not an array

This commit is contained in:
Julien Fontanet 2020-02-18 14:34:59 +01:00
parent ba140c60e3
commit 7de7cdba60

View File

@ -199,7 +199,7 @@ const Updates = decorate([
backupNgJobs !== undefined &&
some(jobs.concat(backupNgJobs), job => job.runId !== undefined),
channelsFormId: generateId,
channels: COMMUNITY ? () => [] : () => xoaUpdater.getReleaseChannels(),
channels: COMMUNITY ? () => ({}) : () => xoaUpdater.getReleaseChannels(),
channelsOptions: ({ channels }) =>
channels === undefined
? undefined