parent
1b0a8b00c2
commit
63b58119bb
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ export function createGetEntryBySlug({
|
||||||
getRenderEntryImport: GetEntryImport;
|
getRenderEntryImport: GetEntryImport;
|
||||||
}) {
|
}) {
|
||||||
return async function getEntryBySlug(collection: string, slug: string) {
|
return async function getEntryBySlug(collection: string, slug: string) {
|
||||||
const entryImport = getEntryImport(collection, slug);
|
const entryImport = await getEntryImport(collection, slug);
|
||||||
if (typeof entryImport !== 'function') return undefined;
|
if (typeof entryImport !== 'function') return undefined;
|
||||||
|
|
||||||
const entry = await entryImport();
|
const entry = await entryImport();
|
||||||
|
|
Loading…
Reference in a new issue