Put a guard in workflow save error detail (#1326)
This commit is contained in:
@@ -252,7 +252,7 @@ function FlowRenderer({
|
|||||||
setHasChanges(false);
|
setHasChanges(false);
|
||||||
},
|
},
|
||||||
onError: (error: AxiosError) => {
|
onError: (error: AxiosError) => {
|
||||||
const detail = (error.response?.data as { detail?: string }).detail;
|
const detail = (error.response?.data as { detail?: string })?.detail;
|
||||||
toast({
|
toast({
|
||||||
title: "Error",
|
title: "Error",
|
||||||
description: detail ? detail : error.message,
|
description: detail ? detail : error.message,
|
||||||
|
|||||||
Reference in New Issue
Block a user