diff --git a/packages/basehub/src/react/form/primitive.tsx b/packages/basehub/src/react/form/primitive.tsx index 7ae4d3b..5dab7d6 100644 --- a/packages/basehub/src/react/form/primitive.tsx +++ b/packages/basehub/src/react/form/primitive.tsx @@ -108,12 +108,12 @@ export function unstable_Form({ if (action.type === "update") { await updateEvent( - action.adminKey, + action.adminKey as any, action.eventId, parsedResult?.data as any ); } else { - await sendEvent(action.ingestKey, parsedResult?.data as any); + await sendEvent(action.ingestKey as any, parsedResult?.data as any); } }, [action, fields]