mirror of https://github.com/apache/superset.git
[SQL Lab] Improve autocomplete performance (#9064)
This commit is contained in:
parent
7364024bba
commit
f9c8ca5df2
|
@ -155,7 +155,12 @@ class AceEditorWrapper extends React.PureComponent {
|
|||
});
|
||||
},
|
||||
};
|
||||
const words = this.state.words.map(word => ({ ...word, completer }));
|
||||
// Mutate instead of object spread here for performance
|
||||
const words = this.state.words.map(word => {
|
||||
/* eslint-disable-next-line no-param-reassign */
|
||||
word.completer = completer;
|
||||
return word;
|
||||
});
|
||||
callback(null, words);
|
||||
}
|
||||
setAutoCompleter(props) {
|
||||
|
|
Loading…
Reference in New Issue