Skip to content

Commit

Permalink
fix ItemPage error type
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Aug 20, 2024
1 parent 77bb1f3 commit aa587b9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ function ItemForm ({
if (error) {
toastQueue.critical('Unable to save item.', {
actionLabel: 'Details',
onAction: () => {
setErrorDialogValue(error)
},
onAction: () => setErrorDialogValue(new Error(error.message)),
shouldCloseOnAction: true,
})
} else {
Expand Down

0 comments on commit aa587b9

Please sign in to comment.