Skip to content

Commit

Permalink
fix: projects fixture loading
Browse files Browse the repository at this point in the history
  • Loading branch information
moekify committed Aug 4, 2024
1 parent 0c09d76 commit 163bd7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/routes/projects/+layout.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ export const load = async () => {
}
}
})
: ((await import('../../../fixtures/projects')) as unknown as typeof projectData);
: (
(await import('../../../fixtures/projects')) as unknown as {
default: typeof projectData;
}
).default;

if (!projects.data) {
throw new Error('No data returned from Directus');
}
Expand Down

0 comments on commit 163bd7e

Please # to comment.