This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch 4.19
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.19 by this push:
     new 96288ecf1fa fix: domain limits tab ui is now able to present 0 to the 
user (#9166)
96288ecf1fa is described below

commit 96288ecf1fab1aab4a87001040b6804f05fdc710
Author: Klaus de Freitas Dornsbach <[email protected]>
AuthorDate: Mon Jun 17 05:34:46 2024 -0300

    fix: domain limits tab ui is now able to present 0 to the user (#9166)
    
    Co-authored-by: klaus.freitas.scclouds <[email protected]>
    Co-authored-by: Bryan Lima <[email protected]>
---
 ui/src/components/view/ResourceLimitTab.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/src/components/view/ResourceLimitTab.vue 
b/ui/src/components/view/ResourceLimitTab.vue
index 0c09a14fcd5..875d2cc3b40 100644
--- a/ui/src/components/view/ResourceLimitTab.vue
+++ b/ui/src/components/view/ResourceLimitTab.vue
@@ -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()

Reply via email to