forked from extern/bruno
fix(#1117): Sort env alphabetically
This commit is contained in:
parent
9f8dba0fb2
commit
eaa448306b
@ -1224,6 +1224,7 @@ export const collectionsSlice = createSlice({
|
|||||||
existingEnv.variables = environment.variables;
|
existingEnv.variables = environment.variables;
|
||||||
} else {
|
} else {
|
||||||
collection.environments.push(environment);
|
collection.environments.push(environment);
|
||||||
|
collection.environments.sort((a, b) => a.name.localeCompare(b.name));
|
||||||
|
|
||||||
const lastAction = collection.lastAction;
|
const lastAction = collection.lastAction;
|
||||||
if (lastAction && lastAction.type === 'ADD_ENVIRONMENT') {
|
if (lastAction && lastAction.type === 'ADD_ENVIRONMENT') {
|
||||||
|
Loading…
Reference in New Issue
Block a user