Stop the polling before changing the location
[ci skip]
This commit is contained in:
parent
3bd37bc4a0
commit
3d553954d4
1 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue