Skip to content

Commit

Permalink
EPMRPP-91264 || Extra request for 'locations' is sent in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
maria-hambardzumian committed Jun 20, 2024
1 parent bc7c33e commit e3d0ad3
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions app/src/controllers/log/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,20 +137,23 @@ function* fetchAllErrorLogs({
if (logViewMode === DETAILED_LOG_VIEW) {
retryId = yield select(activeRetryIdSelector);
}
const isDebugMode = yield select(debugModeSelector);
let cancelRequest = () => {};
try {
yield put(
fetchDataAction(namespace)(
URLS.errorLogs(activeProject, retryId || id, level || filterLevel),
{
params: { ...query, excludeLogContent },
abort: (cancelFunc) => {
cancelRequest = cancelFunc;
if (!isDebugMode) {
yield put(
fetchDataAction(namespace)(
URLS.errorLogs(activeProject, retryId || id, level || filterLevel),
{
params: { ...query, excludeLogContent },
abort: (cancelFunc) => {
cancelRequest = cancelFunc;
},
},
},
),
);
yield take(createFetchPredicate(namespace));
),
);
yield take(createFetchPredicate(namespace));
}
} catch (err) {
yield handleError(err);
} finally {
Expand Down

0 comments on commit e3d0ad3

Please sign in to comment.