@@ -127,8 +127,8 @@ export default {
127127
128128 return Promise .all (uploadPromises)
129129 .catch (error => {
130- logger .error (' Uploading multiple images failed' , { error })
131- showError (error ? . response ? . data ? . error || error . message )
130+ logger .error (' Uploading multiple attachments failed' , { error })
131+ showError (t ( ' text ' , ' Uploading multiple attachments failed. ' ) )
132132 })
133133 .then (() => {
134134 this .state .isUploadingAttachments = false
@@ -145,8 +145,8 @@ export default {
145145 )
146146 })
147147 .catch ((error ) => {
148- logger .error (' Uploading image failed' , { error })
149- showError (error ? . response ? . data ? . error )
148+ logger .error (' Uploading attachment failed' , { error })
149+ showError (t ( ' text ' , ' Uploading attachment failed. ' ) )
150150 })
151151 .then (() => {
152152 this .state .isUploadingAttachments = false
@@ -173,8 +173,8 @@ export default {
173173 null , response .data ? .dirname ,
174174 )
175175 }).catch ((error ) => {
176- logger .error (' Failed to insert image path ' , { error })
177- showError (error ? . response ? . data ? . error || error . message )
176+ logger .error (' Failed to insert from Files ' , { error })
177+ showError (t ( ' text ' , ' Failed to insert from Files ' ) )
178178 }).then (() => {
179179 this .state .isUploadingAttachments = false
180180 })
0 commit comments