Make loading single file work without scanning whole collection
This commit is contained in:
@ -187,7 +187,10 @@ export function loadEntry(entry, collection, slug) {
|
||||
} else {
|
||||
getPromise = backend.lookupEntry(collection, slug);
|
||||
}
|
||||
return getPromise.then(loadedEntry => dispatch(entryLoaded(collection, loadedEntry)));
|
||||
return getPromise
|
||||
.then((loadedEntry) => {
|
||||
return dispatch(entryLoaded(collection, loadedEntry));
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user