Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2019-07-15 18:29:06 +0300
committerMike Greiling <mike@pixelcog.com>2019-07-15 18:29:06 +0300
commitca56311d0e8acde5417ec890c74cb684cf96af92 (patch)
tree7dfa35a45054b5cbdc58ef9ead9d24549dfaa158 /app
parent6eca380ee39ffa9816a8e2992be7f1330c7a5d37 (diff)
parentfcc7d5c016a75f975c1e66c6be708fc8e7a602c6 (diff)
Merge branch 'fix-comment-race-condition' into 'master'
Fix race condition with polling when saving notes Closes gitlab-ee#12472 See merge request gitlab-org/gitlab-ce!30724
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/notes/stores/actions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/notes/stores/actions.js b/app/assets/javascripts/notes/stores/actions.js
index 30eab272aa9..762a87ce0ff 100644
--- a/app/assets/javascripts/notes/stores/actions.js
+++ b/app/assets/javascripts/notes/stores/actions.js
@@ -357,11 +357,11 @@ export const poll = ({ commit, state, getters, dispatch }) => {
};
export const stopPolling = () => {
- eTagPoll.stop();
+ if (eTagPoll) eTagPoll.stop();
};
export const restartPolling = () => {
- eTagPoll.restart();
+ if (eTagPoll) eTagPoll.restart();
};
export const fetchData = ({ commit, state, getters }) => {