mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-07 16:44:27 +01:00
Merge pull request #1172 from Zomzog/1117_sort_env
fix(#1117): Sort env alphabetically
This commit is contained in:
commit
8ddec6bf0c
@ -1224,6 +1224,7 @@ export const collectionsSlice = createSlice({
|
||||
existingEnv.variables = environment.variables;
|
||||
} else {
|
||||
collection.environments.push(environment);
|
||||
collection.environments.sort((a, b) => a.name.localeCompare(b.name));
|
||||
|
||||
const lastAction = collection.lastAction;
|
||||
if (lastAction && lastAction.type === 'ADD_ENVIRONMENT') {
|
||||
|
Loading…
Reference in New Issue
Block a user