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