mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-15 17:36:37 +00:00
Show error
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user