fix(xo-web/xoa/update): dont fail if channels is undefined
Which is always the case during loading.
This commit is contained in:
@@ -247,8 +247,12 @@ const Updates = decorate([
|
||||
xoaTrialState.state === 'default' &&
|
||||
!isTrialRunning(xoaTrialState.trial) &&
|
||||
!exposeTrial(xoaTrialState.trial),
|
||||
isUnlistedChannel: ({ consolidatedChannel, channels }) =>
|
||||
consolidatedChannel !== undefined && !(consolidatedChannel in channels),
|
||||
isUnlistedChannel: ({ consolidatedChannel, channels }) => {
|
||||
return (
|
||||
consolidatedChannel !== undefined &&
|
||||
!(channels !== undefined && consolidatedChannel in channels)
|
||||
)
|
||||
},
|
||||
isUpdaterDown: (_, { xoaTrialState }) =>
|
||||
isEmpty(xoaTrialState) || xoaTrialState.state === 'ERROR',
|
||||
packagesList: ({ installedPackages }) =>
|
||||
|
||||
Reference in New Issue
Block a user