Commit 3d553954 authored by Phil Hughes's avatar Phil Hughes

Stop the polling before changing the location

[ci skip]
parent 3bd37bc4
......@@ -78,10 +78,10 @@ export default {
deleteIssuable() {
this.service.deleteIssuable()
.then((data) => {
gl.utils.visitUrl(data.path);
// Stop the poll so we don't get 404's with the issue not existing
this.poll.stop();
gl.utils.visitUrl(data.path);
})
.catch(() => {
eventHub.$emit('close.form');
......
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