Skip to content
Snippets Groups Projects
Unverified Commit 1f762f42 authored by Claire's avatar Claire Committed by GitHub
Browse files

Fix wasteful request to /api/v1/custom_emojis when not logged in (#22326)

parent 78ef6359
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,9 @@ export const store = configureStore();
const hydrateAction = hydrateStore(initialState);
store.dispatch(hydrateAction);
store.dispatch(fetchCustomEmojis());
if (initialState.meta.me) {
store.dispatch(fetchCustomEmojis());
}
const createIdentityContext = state => ({
signedIn: !!state.meta.me,
......
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