mirror of
https://github.com/usebruno/bruno.git
synced 2025-06-25 22:41:30 +02:00
fix: active enviroment after rename when there is single enviroment (#2640)
This commit is contained in:
parent
34a961967e
commit
81497d8397
@ -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…
x
Reference in New Issue
Block a user