mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
Sort enviroment variables in the dropdown on edit (#2295)
This commit is contained in:
parent
a200e31e61
commit
f399c9e95f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user