Reset error state if query execution is successful (#1497)

This commit is contained in:
victor-meng 2023-06-22 23:21:41 -07:00 committed by GitHub
parent 8092841ce5
commit c606d95765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,7 +220,7 @@ export default class QueryTabComponent extends React.Component<IQueryTabComponen
firstItemIndex, firstItemIndex,
queryDocuments queryDocuments
); );
this.setState({ queryResults }); this.setState({ queryResults, error: "" });
} catch (error) { } catch (error) {
this.props.tabsBaseInstance.isExecutionError(true); this.props.tabsBaseInstance.isExecutionError(true);
this.setState({ this.setState({