Skip to content

Commit

Permalink
Put a guard in workflow save error detail (Skyvern-AI#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored and satansdeer committed Dec 12, 2024
1 parent f313326 commit 9b35651
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9b35651

Please sign in to comment.