From 03cd536b54b148eb59cabfa735c0ec6820fc2266 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Fri, 6 Oct 2017 15:36:15 -0500 Subject: Cleanup data-page attribute after each Karma test Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/38871 --- app/assets/javascripts/notes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/assets/javascripts/notes.js') diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index cf7322ba1da..a40a6e29743 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -1257,7 +1257,7 @@ export default class Notes { } static checkMergeRequestStatus() { - if (getPagePath(1) === 'merge_requests') { + if (getPagePath(1) === 'merge_requests' && gl.mrWidget) { gl.mrWidget.checkStatus(); } } -- cgit v1.2.1