diff --git a/ui/src/views/compute/wizard/ComputeSelection.vue b/ui/src/views/compute/wizard/ComputeSelection.vue index 2b402682edc..bdac0b1a842 100644 --- a/ui/src/views/compute/wizard/ComputeSelection.vue +++ b/ui/src/views/compute/wizard/ComputeSelection.vue @@ -21,7 +21,7 @@ @@ -36,7 +36,6 @@ @@ -45,7 +44,7 @@ @@ -188,6 +187,7 @@ export default { this.updateComputeMemory(this.preFillContent.memory || this.memoryInputValue) }, updateComputeCpuNumber (value) { + if (!value) this.cpuNumberInputValue = 0 if (!this.validateInput('cpu', value)) { return } @@ -197,6 +197,7 @@ export default { this.$emit('update-compute-cpuspeed', this.cpuspeedInputDecorator, value) }, updateComputeMemory (value) { + if (!value) this.memoryInputValue = 0 if (!this.validateInput('memory', value)) { return }