Skip to content

Commit cd9a508

Browse files
committed
Fixed tests
refs TryGhost@85cce39 - removed out of date transfer owner modal integration test - fixed missing `?` in optional chaining in `<GhImageUploader>` error handling
1 parent bdc5984 commit cd9a508

File tree

2 files changed

+1
-28
lines changed

2 files changed

+1
-28
lines changed

ghost/admin/app/components/gh-image-uploader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export default Component.extend({
248248
message = `The image type you uploaded is not supported. Please use ${validExtensions}`;
249249
} else if (isRequestEntityTooLargeError(error)) {
250250
message = 'The image you uploaded was larger than the maximum file size your server allows.';
251-
} else if (!isBlank(error.payload?.errors[0]?.message)) {
251+
} else if (!isBlank(error.payload?.errors?.[0]?.message)) {
252252
message = error.payload.errors[0].message;
253253
} else {
254254
message = 'Something went wrong :(';

ghost/admin/tests/integration/components/modal-transfer-owner-test.js

-27
This file was deleted.

0 commit comments

Comments
 (0)