Skip to content
Snippets Groups Projects
Commit 07af3acc authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix display of loading icon in blubber, fixes #4414

Closes #4414

Merge request studip/studip!3275
parent 9c85021f
No related branches found
No related tags found
No related merge requests found
...@@ -165,9 +165,10 @@ export default { ...@@ -165,9 +165,10 @@ export default {
await dispatch('loadCurrentUser'); await dispatch('loadCurrentUser');
// if total is missing, there are more comments to fetch // if total is missing, there are more comments to fetch
const total = rootGetters['blubber-comments/lastMeta']?.page?.total; commit('setMoreOlder', {
const hasMore = total ?? true; id,
commit('setMoreOlder', { id, hasMore }); hasMore: !('total' in rootGetters['blubber-comments/lastMeta'].page)
});
}, },
async fetchThreads({ commit, dispatch, getters, rootGetters }, { search, more = false }) { async fetchThreads({ commit, dispatch, getters, rootGetters }, { search, more = false }) {
......
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