mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-20 22:27:24 -04:00
Sort enviroment variables in the dropdown on edit (#2295)
This commit is contained in:
@@ -66,7 +66,7 @@ class VariableEditor extends PureComponent {
|
||||
}
|
||||
|
||||
const context = await this.props.handleGetRenderContext();
|
||||
const variables = context.keys;
|
||||
const variables = context.keys.sort((a, b) => (a.name < b.name ? -1 : 1));
|
||||
const variableSource = context.context.getKeysContext().keyContext[cleanedValue] || '';
|
||||
// Hack to skip updating if we unmounted for some reason
|
||||
if (this._select) {
|
||||
|
||||
Reference in New Issue
Block a user