fix: build erorr
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 1m55s

This commit is contained in:
max_richter 2024-04-26 19:12:34 +02:00
parent 98a4e6e34d
commit 99638cc699

View File

@ -14,6 +14,10 @@ export const POST: RequestHandler = async ({ request, fetch }) => {
const { graph, settings } = await request.json(); const { graph, settings } = await request.json();
if (!graph || !settings) {
return new Response("Invalid request", { status: 400 });
}
registry.fetch = fetch; registry.fetch = fetch;
await registry.load(graph.nodes.map(node => node.type)) await registry.load(graph.nodes.map(node => node.type))