fix(core): backend file system create entry (#2401)

This commit is contained in:
Bartholomew 2019-06-26 19:37:22 +01:00 committed by Shawn Erquhart
parent aded9d7c24
commit 556c102e37

View File

@ -282,11 +282,8 @@ export class Backend {
const publishedEntry = await this.implementation
.getEntry(collection, slug, path)
.then(({ data }) => data)
.catch(error => {
if (error.status === 404 || error.message.includes(404)) {
return Promise.resolve(false);
}
return Promise.reject(error);
.catch(() => {
return Promise.resolve(false);
});
return publishedEntry;