remove leftover code
This commit is contained in:
parent
85efb71a23
commit
29f96e659a
1 changed files with 1 additions and 8 deletions
|
@ -336,14 +336,7 @@ export default class BasicMessageEditor extends React.Component {
|
||||||
// not really, but we could not serialize the parts, and just change the autoCompleter
|
// not really, but we could not serialize the parts, and just change the autoCompleter
|
||||||
partCreator.setAutoCompleteCreator(autoCompleteCreator(
|
partCreator.setAutoCompleteCreator(autoCompleteCreator(
|
||||||
() => this._autocompleteRef,
|
() => this._autocompleteRef,
|
||||||
query => {
|
query => new Promise(resolve => this.setState({query}, resolve)),
|
||||||
return new Promise(resolve => this.setState({query}, resolve));
|
|
||||||
// if setState
|
|
||||||
// if (this.state.query === query) {
|
|
||||||
// return Promise.resolve();
|
|
||||||
// } else {
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
));
|
));
|
||||||
this.historyManager = new HistoryManager(partCreator);
|
this.historyManager = new HistoryManager(partCreator);
|
||||||
// initial render of model
|
// initial render of model
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue