Skip to content

Commit

Permalink
Show error message correctly on workflow save (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored Oct 24, 2024
1 parent 805ff9f commit afae80f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,10 @@ function FlowRenderer({
setHasChanges(false);
},
onError: (error: AxiosError) => {
const detail = (error.response?.data as { detail?: string }).detail;
toast({
title: "Error",
description: error.message,
description: detail ? detail : error.message,
variant: "destructive",
});
},
Expand Down

0 comments on commit afae80f

Please sign in to comment.