bugfixes for test-repo. Closes #126 and #127

This commit is contained in:
Cássio Zen
2016-10-20 14:27:58 -02:00
parent 195479f088
commit bd1216c760
3 changed files with 7 additions and 9 deletions

View File

@ -182,7 +182,7 @@ export function loadEntry(entry, collection, slug) {
const backend = currentBackend(state.config);
dispatch(entryLoading(collection, slug));
let getPromise;
if (entry && entry.get('path')) {
if (entry && entry.get('path') && entry.get('partial')) {
getPromise = backend.getEntry(entry.get('collection'), entry.get('slug'), entry.get('path'));
} else {
getPromise = backend.lookupEntry(collection, slug);