Renders template on view modes from theme.

This commit is contained in:
Mateus Machado Luna 2019-05-20 14:43:09 -03:00
parent af2e0b2f9f
commit b688889c8b
1 changed files with 2 additions and 2 deletions

View File

@ -77,9 +77,9 @@ export const fetchItems = ({ rootGetters, dispatch, commit }, { collectionId, is
let viewModeObject = tainacan_plugin.registered_view_modes[postQueries.view_mode];
if (isOnTheme && viewModeObject != undefined && viewModeObject.type == 'template') {
commit('setItemsListTemplate', items);
commit('setItemsListTemplate', res.data.template);
resolve({
'itemsListTemplate': items,
'itemsListTemplate': res.data.template,
'total': res.headers['x-wp-total'],
hasFiltered: hasFiltered,
advancedSearchResults: advancedSearchResults,