Skip to content

Commit 20dea8d

Browse files
KKoukioumartinpitt
authored andcommitted
machines: fix wrongly backported state variable name
On master it is format but here it should be diskFileFormat.
1 parent 93ab723 commit 20dea8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/machines/components/diskAdd.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ class AddDiskModalBody extends React.Component {
439439
// Reset the format only when the Format selection dropdown changes entries - otherwise just keep the old selection
440440
// All pool types apart from 'disk' have either 'raw' or 'qcow2' format
441441
if ((currentPool.type == 'disk' && prevPool.type != 'disk') || (currentPool.type != 'disk' && prevPool.type == 'disk'))
442-
this.onValueChanged('format', this.getDefaultVolumeFormat(value));
442+
this.onValueChanged('diskFileFormat', this.getDefaultVolumeFormat(value));
443443

444444
if (this.state.mode === USE_EXISTING) { // user changed pool
445445
this.onValueChanged('existingVolumeName', this.getDefaultVolumeName(value));

0 commit comments

Comments
 (0)