fix: add status on request items

This commit is contained in:
vnmedeiros 2022-10-04 09:25:55 -03:00
parent ff2a4e845b
commit 4b5bafd43d
1 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,8 @@ export const fetchItems = ({ rootGetters, dispatch, commit }, { collectionId, is
// Admin default tab should load publish, private and draft statuses
if (!isOnTheme && !postQueries.status) {
delete postQueries.status;
dispatch('search/setStatus', '', { root: true });
postQueries.status = 'publish,private,draft';
dispatch('search/setStatus', 'publish,private,draft', { root: true });
}
// Guarantees at least status is passed in case none is found