From 5d70f6be55ab8af053bdb9c12863702aa7b9d454 Mon Sep 17 00:00:00 2001 From: maria-hambardzumian Date: Fri, 1 Nov 2024 11:12:48 +0400 Subject: [PATCH] EPMRPP-96118 || Revert changes for the Show button --- app/src/controllers/log/sagas.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/controllers/log/sagas.js b/app/src/controllers/log/sagas.js index fa197e7bbe..efa0ab6656 100644 --- a/app/src/controllers/log/sagas.js +++ b/app/src/controllers/log/sagas.js @@ -44,7 +44,7 @@ import { } from 'controllers/log/nestedSteps/actionCreators'; import { createNamespacedQuery } from 'common/utils/routingUtils'; import { FAILED } from 'common/constants/testStatuses'; -import { ERROR, FATAL } from 'common/constants/logLevels'; +import { ERROR } from 'common/constants/logLevels'; import { fetchErrorLogs, clearLogPageStackTrace, @@ -130,9 +130,6 @@ function* fetchAllErrorLogs({ excludeLogContent = true, level, }) { - const logMessages = yield select(logItemsSelector); - const requiresErrorLogLocation = logMessages.some((log) => [ERROR, FATAL].includes(log.level)); - const { id } = logItem; const { activeProject, query, filterLevel } = yield call(collectLogPayload); let retryId = null; @@ -142,7 +139,7 @@ function* fetchAllErrorLogs({ } let cancelRequest = () => {}; try { - if (logViewMode === DETAILED_LOG_VIEW && requiresErrorLogLocation) { + if (logViewMode === DETAILED_LOG_VIEW) { yield put( fetchDataAction(namespace)( URLS.errorLogs(activeProject, retryId || id, level || filterLevel),