File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/ui/src/elements/DeleteMany Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,9 @@ export const DeleteMany: React.FC<Props> = (props) => {
79
79
}
80
80
81
81
if ( json . errors ) {
82
- toast . error ( json . message )
82
+ toast . error ( json . message , {
83
+ description : json . errors . map ( ( error ) => error . message ) . join ( '\n' ) ,
84
+ } )
83
85
} else {
84
86
addDefaultError ( )
85
87
}
@@ -132,7 +134,7 @@ export const DeleteMany: React.FC<Props> = (props) => {
132
134
>
133
135
{ t ( 'general:cancel' ) }
134
136
</ Button >
135
- < Button id = "confirm-delete" onClick = { deleting ? undefined : handleDelete } >
137
+ < Button id = "confirm-delete" onClick = { deleting ? undefined : ( ) => void handleDelete ( ) } >
136
138
{ deleting ? t ( 'general:deleting' ) : t ( 'general:confirm' ) }
137
139
</ Button >
138
140
</ div >
You can’t perform that action at this time.
0 commit comments