fix(xo-web/new-vm): handle both template_info.disks and VDIs

Related to 3be45c7f4
This commit is contained in:
Julien Fontanet 2024-02-19 13:39:26 +01:00 committed by Pierre Donias
parent 1c43c9e258
commit 5d82f2696e

View File

@ -300,7 +300,7 @@ export default class NewVm extends BaseComponent {
get _isDiskTemplate() {
const { template } = this.props
return template && template.template_info.disks.length === 0 && template.name_label !== 'Other install media'
return template && template.$VBDs.length !== 0 && template.name_label !== 'Other install media'
}
_setState = (newValues, callback) => {
this.setState(