Show error

This commit is contained in:
Owen
2025-10-29 15:23:53 -07:00
parent 55082d2ef8
commit 48aebea6cf
2 changed files with 11 additions and 5 deletions

View File

@@ -87,11 +87,13 @@ export default function CreateBlueprintForm({
if (!isValid) return;
const payload = form.getValues();
const res = await api
.put<
AxiosResponse<CreateBlueprintResponse>
>(`/org/${orgId}/blueprint/`, payload)
>(`/org/${orgId}/blueprint/`, {
name: form.getValues("name"),
blueprint: form.getValues("contents")
})
.catch((e) => {
toast({
variant: "destructive",