fix: build erorr
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 1m55s
All checks were successful
Deploy to GitHub Pages / build_site (push) Successful in 1m55s
This commit is contained in:
parent
98a4e6e34d
commit
99638cc699
@ -14,6 +14,10 @@ export const POST: RequestHandler = async ({ request, fetch }) => {
|
||||
|
||||
const { graph, settings } = await request.json();
|
||||
|
||||
if (!graph || !settings) {
|
||||
return new Response("Invalid request", { status: 400 });
|
||||
}
|
||||
|
||||
registry.fetch = fetch;
|
||||
|
||||
await registry.load(graph.nodes.map(node => node.type))
|
Loading…
Reference in New Issue
Block a user