Skip to content
Snippets Groups Projects
Commit ff7328a4 authored by Marcus Eibrink-Lunzenauer's avatar Marcus Eibrink-Lunzenauer
Browse files

prevent pagination when loading files from courseware blocks.

Fixes #296.
parent bc98dfc9
No related branches found
No related tags found
No related merge requests found
......@@ -206,17 +206,11 @@ export const actions = {
};
const relationship = 'file-refs';
return dispatch('loadRelatedPaginated', {
type: 'file-refs',
parent,
relationship,
}).then(() => {
const refs = rootGetters['file-refs/related']({
return dispatch('file-refs/loadRelated', { parent, relationship }, { root: true })
.then(() => rootGetters['file-refs/related']({
parent,
relationship,
});
return refs;
});
}));
},
async createFile(context, { file, filedata, folder }) {
......
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