Skip to content

Commit

Permalink
fix(xo-web/new-vm): handle both template_info.disks and VDIs
Browse files Browse the repository at this point in the history
Related to 3be45c7
  • Loading branch information
julien-f committed Feb 23, 2024
1 parent a69f2d2 commit 4348033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xo-web/src/xo-app/new-vm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4348033

Please sign in to comment.