Skip to content

Commit 07ad39b

Browse files
authored
[5.x] Restore error message on asset upload server errors (#11642)
Account for empty response on asset uploads Signed-off-by: Philipp Daun <post@philippdaun.net>
1 parent 20c8888 commit 07ad39b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/components/assets/Uploader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export default {
287287
}
288288
}
289289
290-
this.handleToasts(response._toasts ?? []);
290+
this.handleToasts(response?._toasts ?? []);
291291
292292
upload.errorMessage = msg;
293293
upload.errorStatus = status;

0 commit comments

Comments
 (0)