From e8801d38a3c156a96c1325038810d5ed37d76272 Mon Sep 17 00:00:00 2001 From: brunoasr Date: Sat, 24 Feb 2024 00:15:44 -0300 Subject: [PATCH] Fixup --- .../main/resources/webapp/src/basic-components/Ami.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/orion-server/src/main/resources/webapp/src/basic-components/Ami.js b/orion-server/src/main/resources/webapp/src/basic-components/Ami.js index 20d6678..b4880c9 100644 --- a/orion-server/src/main/resources/webapp/src/basic-components/Ami.js +++ b/orion-server/src/main/resources/webapp/src/basic-components/Ami.js @@ -74,15 +74,7 @@ function Ami({ amiList, requestAmiList, envTypes, requestEnvTypes, updateAmiTag const handleCheckboxChange = (event) => { env[event.target.name] = event.target.checked; const newAppEnv = []; - envTypes.forEach(envType => { if (env[envType]) newAppEnv.push(key); }); - /*if (env.dev) - newAppEnv.push("dev"); - if (env.test) - newAppEnv.push("test"); - if (env.staging) - newAppEnv.push("staging"); - if (env.prod) - newAppEnv.push("prod");*/ + envTypes.forEach(envType => { if (env[envType]) newAppEnv.push(envType); }); setAppEnv(newAppEnv.join(',')); }; const applyFilter = () => {