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