Stop the polling before changing the location

[ci skip]
This commit is contained in:
Phil Hughes 2017-05-12 12:57:52 +01:00
parent 3bd37bc4a0
commit 3d553954d4

View file

@ -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');