mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-28 13:21:42 +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 => {
|
||||
const outputType = option.key as OutputType;
|
||||
this.setState({ outputType });
|
||||
this.setState({ outputType }, () => this.onInputChange(this.props.inputValue));
|
||||
};
|
||||
|
||||
private onInputChange = (text: string) => {
|
||||
|
||||
Reference in New Issue
Block a user