From 96288ecf1fab1aab4a87001040b6804f05fdc710 Mon Sep 17 00:00:00 2001 From: Klaus de Freitas Dornsbach Date: Mon, 17 Jun 2024 05:34:46 -0300 Subject: [PATCH] fix: domain limits tab ui is now able to present 0 to the user (#9166) Co-authored-by: klaus.freitas.scclouds Co-authored-by: Bryan Lima <42067040+BryanMLima@users.noreply.github.com> --- 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()