From 520f3178665de5e7d313d332989cd445da83817b Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 20 Aug 2020 15:10:18 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- .../javascripts/performance_bar/services/performance_bar_service.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/assets/javascripts/performance_bar') diff --git a/app/assets/javascripts/performance_bar/services/performance_bar_service.js b/app/assets/javascripts/performance_bar/services/performance_bar_service.js index 61b35b4b8f5..164f1f8dff7 100644 --- a/app/assets/javascripts/performance_bar/services/performance_bar_service.js +++ b/app/assets/javascripts/performance_bar/services/performance_bar_service.js @@ -32,10 +32,9 @@ export default class PerformanceBarService { // Get the request URL from response.config for Axios, and response for // Vue Resource. const requestUrl = (response.config || response).url; - const apiRequest = requestUrl && requestUrl.match(/^\/api\//); const cachedResponse = response.headers && parseBoolean(response.headers['x-gitlab-from-cache']); - const fireCallback = requestUrl !== peekUrl && requestId && !apiRequest && !cachedResponse; + const fireCallback = requestUrl !== peekUrl && Boolean(requestId) && !cachedResponse; return [fireCallback, requestId, requestUrl]; } -- cgit v1.2.1