Solves vuex mutation warning after previous commit.

This commit is contained in:
Mateus Machado Luna 2018-06-05 09:57:08 -03:00
parent 0b0cdf0a45
commit eb78a8f3b9
1 changed files with 5 additions and 5 deletions

View File

@ -14,11 +14,11 @@ export const fetchItems = ({ rootGetters, dispatch, commit }, { collectionId, is
hasFiltered = true; hasFiltered = true;
// Garanttees at least empty fetch_only are passed in case none is found // Garanttees at least empty fetch_only are passed in case none is found
if (qs.stringify(postQueries.fetch_only) == '') if (qs.stringify(postQueries.fetch_only) == '')
postQueries.fetch_only = {}; dispatch('search/add_fetchonly', {} , { root: true });
if (qs.stringify(postQueries.fetch_only['meta']) == '') if (qs.stringify(postQueries.fetch_only['meta']) == '')
postQueries.fetch_only['meta'] = [0]; dispatch('search/add_fetchonly_meta', 0 , { root: true });
// Differentiates between repository level and collection level queries // Differentiates between repository level and collection level queries
let endpoint = '/collection/'+collectionId+'/items?' let endpoint = '/collection/'+collectionId+'/items?'