fix: domain limits tab ui is now able to present 0 to the user (#9166)

Co-authored-by: klaus.freitas.scclouds <klaus.freitas@scclouds.com.br>
Co-authored-by: Bryan Lima <42067040+BryanMLima@users.noreply.github.com>
This commit is contained in:
Klaus de Freitas Dornsbach 2024-06-17 05:34:46 -03:00 committed by GitHub
parent 00fe25ab01
commit 96288ecf1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,7 +112,7 @@ export default {
this.formLoading = true
this.dataResource = await this.listResourceLimits(params)
this.dataResource.forEach(item => {
form[item.resourcetype] = item.max || -1
form[item.resourcetype] = item.max == null ? -1 : item.max
})
this.form = form
this.formRef.value.resetFields()