Use _this rather than the merge_request_widget global

parent b47244c1
......@@ -203,7 +203,7 @@ import MiniPipelineGraph from './mini_pipeline_graph_dropdown';
}
if (data.status === "success" || data.status === "failed") {
callback = function() {
return merge_request_widget.getMergeStatus();
return _this.getMergeStatus();
};
return setTimeout(callback, 2000);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment