fix(new-xosan): suggestions can be null as well (#2544)

This commit is contained in:
Pierre Donias 2017-12-29 17:24:00 +01:00 committed by Julien Fontanet
parent eb8dfc86ca
commit 6936f223f3

View File

@ -73,6 +73,7 @@ export default class NewXosan extends Component {
brickSize: DEFAULT_BRICKSIZE, brickSize: DEFAULT_BRICKSIZE,
ipRange: '172.31.100.0', ipRange: '172.31.100.0',
memorySize: DEFAULT_MEMORY, memorySize: DEFAULT_MEMORY,
suggestion: 0,
} }
_selectPool = pool => { _selectPool = pool => {
@ -280,7 +281,7 @@ export default class NewXosan extends Component {
pool !== undefined && pool !== undefined &&
hostsNeedRestartByPool !== undefined && hostsNeedRestartByPool !== undefined &&
hostsNeedRestartByPool[pool.id] hostsNeedRestartByPool[pool.id]
const architecture = suggestions !== undefined && suggestions[suggestion] const architecture = suggestions != null && suggestions[suggestion]
return ( return (
<Container> <Container>