From 9ec9018288388e68f7e21fc4d39960cd8eb747f5 Mon Sep 17 00:00:00 2001 From: noahtalerman <47070608+noahtalerman@users.noreply.github.com> Date: Thu, 25 Feb 2021 09:14:13 -0800 Subject: [PATCH] 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 --- .../components/queries/QueryResultsTable/QueryResultsTable.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/components/queries/QueryResultsTable/QueryResultsTable.jsx b/frontend/components/queries/QueryResultsTable/QueryResultsTable.jsx index 722fdf26ae..a15dfbe04a 100644 --- a/frontend/components/queries/QueryResultsTable/QueryResultsTable.jsx +++ b/frontend/components/queries/QueryResultsTable/QueryResultsTable.jsx @@ -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,