mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-08 12:07:06 +00:00
Fix update state
This commit is contained in:
@@ -69,7 +69,7 @@ export class MongoQueryComponent extends React.Component<MongoQueryComponentProp
|
|||||||
|
|
||||||
private onOutputTypeChange = (e: React.FormEvent<HTMLElement | HTMLInputElement>, option: IChoiceGroupOption): void => {
|
private onOutputTypeChange = (e: React.FormEvent<HTMLElement | HTMLInputElement>, option: IChoiceGroupOption): void => {
|
||||||
const outputType = option.key as OutputType;
|
const outputType = option.key as OutputType;
|
||||||
this.setState({ outputType });
|
this.setState({ outputType }, () => this.onInputChange(this.props.inputValue));
|
||||||
};
|
};
|
||||||
|
|
||||||
private onInputChange = (text: string) => {
|
private onInputChange = (text: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user