fix(core): backend file system create entry (#2401)
This commit is contained in:
parent
aded9d7c24
commit
556c102e37
@ -282,11 +282,8 @@ export class Backend {
|
|||||||
const publishedEntry = await this.implementation
|
const publishedEntry = await this.implementation
|
||||||
.getEntry(collection, slug, path)
|
.getEntry(collection, slug, path)
|
||||||
.then(({ data }) => data)
|
.then(({ data }) => data)
|
||||||
.catch(error => {
|
.catch(() => {
|
||||||
if (error.status === 404 || error.message.includes(404)) {
|
|
||||||
return Promise.resolve(false);
|
return Promise.resolve(false);
|
||||||
}
|
|
||||||
return Promise.reject(error);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return publishedEntry;
|
return publishedEntry;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user