From 4029f42c867f9ef1757704a7308635c0d220d65a Mon Sep 17 00:00:00 2001 From: Feroze Mohideen Date: Thu, 12 Oct 2023 10:36:24 -0400 Subject: [PATCH] round ram to nearest number (#3800) --- .../validate-apply/services-settings/tabs/Resources.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/main/home/app-dashboard/validate-apply/services-settings/tabs/Resources.tsx b/dashboard/src/main/home/app-dashboard/validate-apply/services-settings/tabs/Resources.tsx index 3ddb48bb9c..8cdbb73135 100644 --- a/dashboard/src/main/home/app-dashboard/validate-apply/services-settings/tabs/Resources.tsx +++ b/dashboard/src/main/home/app-dashboard/validate-apply/services-settings/tabs/Resources.tsx @@ -117,7 +117,7 @@ const Resources: React.FC = ({ setValue( `app.services.${index}.ramMegabytes`, { readOnly: false, - value: closestMultiplier(0, maxCPU, value.value) * maxRAM + value: Number((closestMultiplier(0, maxCPU, value.value) * maxRAM).toFixed(0)) }); } onChange({