Errors table doesn't render if there are no error (#353)

The errors table in the live query UI doesn't render if there are no errors.
- Fixes #330
This commit is contained in:
noahtalerman 2021-02-25 09:14:13 -08:00 committed by GitHub
parent 4de0090bd3
commit 9ec9018288
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,7 +174,7 @@ class QueryResultsTable extends Component {
const { hosts_count: hostsCount, query_results: queryResults, errors } = campaign;
const hasNoResults = !queryIsRunning && (!hostsCount.successful || (!queryResults || !queryResults.length));
const hasErrors = !queryIsRunning && (hostsCount.failed || errors);
const hasErrors = !queryIsRunning && (hostsCount.failed && errors);
const resultsTableWrapClass = classnames(baseClass, {
[`${baseClass}--full-screen`]: isQueryFullScreen,