mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
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:
parent
4de0090bd3
commit
9ec9018288
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue