From 2804ce1eb390e48bd5200ea5301f0b1c6c5e4c51 Mon Sep 17 00:00:00 2001 From: Sanjai Kumar <84461672+sanjai0py@users.noreply.github.com> Date: Fri, 19 Jul 2024 16:51:12 +0530 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20active=20enviroment=20after=20?= =?UTF-8?q?rename=20when=20there=20is=20single=20enviroment=20(=E2=80=A6"?= =?UTF-8?q?=20(#2660)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 81497d8397082f8600d348f87dfcdded05660d65. --- .../Environments/EnvironmentSettings/EnvironmentList/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js index c5066e0f3..4517bd8d3 100644 --- a/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js +++ b/packages/bruno-app/src/components/Environments/EnvironmentSettings/EnvironmentList/index.js @@ -43,7 +43,7 @@ const EnvironmentList = ({ selectedEnvironment, setSelectedEnvironment, collecti } } - if (prevEnvUids && prevEnvUids.length && envUids.length <= prevEnvUids.length) { + if (prevEnvUids && prevEnvUids.length && envUids.length < prevEnvUids.length) { setSelectedEnvironment(environments && environments.length ? environments[0] : null); } }, [envUids, environments, prevEnvUids]);