mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-28 19:03:15 +01:00
Revert "fix: active enviroment after rename when there is single enviroment (…" (#2660)
This reverts commit 81497d8397
.
This commit is contained in:
parent
9892f7cd40
commit
2804ce1eb3
@ -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);
|
setSelectedEnvironment(environments && environments.length ? environments[0] : null);
|
||||||
}
|
}
|
||||||
}, [envUids, environments, prevEnvUids]);
|
}, [envUids, environments, prevEnvUids]);
|
||||||
|
Loading…
Reference in New Issue
Block a user