Commit fcc7d5c0 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Fix race condition with polling when saving notes

eTagPoll may not be initialized yet when we save a note.
Polling is initialized only after discussions are loaded
parent 920fc2e3
...@@ -357,11 +357,11 @@ export const poll = ({ commit, state, getters, dispatch }) => { ...@@ -357,11 +357,11 @@ export const poll = ({ commit, state, getters, dispatch }) => {
}; };
export const stopPolling = () => { export const stopPolling = () => {
eTagPoll.stop(); if (eTagPoll) eTagPoll.stop();
}; };
export const restartPolling = () => { export const restartPolling = () => {
eTagPoll.restart(); if (eTagPoll) eTagPoll.restart();
}; };
export const fetchData = ({ commit, state, getters }) => { export const fetchData = ({ commit, state, getters }) => {
......
---
title: Fix commenting before discussions are loaded
merge_request: 30724
author:
type: fixed
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