Skip to content
Snippets Groups Projects
Commit fcc7d5c0 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu 🏀
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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 }) => {
Loading
Loading
---
title: Fix commenting before discussions are loaded
merge_request: 30724
author:
type: fixed
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment