edit unpublished content on EntryPage (through HOC)
This commit is contained in:
@ -90,4 +90,12 @@ export default class GitHub {
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
unpublishedEntry(collection, slug) {
|
||||
return this.unpublishedEntries().then((response) => (
|
||||
response.entries.filter((entry) => (
|
||||
entry.metaData && entry.metaData.collection === collection.get('name') && entry.slug === slug
|
||||
))[0]
|
||||
));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user