fix thumbnails disabling publish (#7714)

This commit is contained in:
jessopb 2022-11-03 15:55:46 -04:00 committed by GitHub
parent 7dbeeac112
commit 5d77b115f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -208,7 +208,6 @@ function PublishForm(props: Props) {
isNameValid(name) && isNameValid(name) &&
title && title &&
bid && bid &&
thumbnail &&
!bidError && !bidError &&
!emptyPostError && !emptyPostError &&
!(thumbnailError && !thumbnailUploaded) && !(thumbnailError && !thumbnailUploaded) &&

View file

@ -106,7 +106,7 @@ function SelectThumbnail(props: Props) {
__('This will be visible in a few minutes after you submit this form.')} __('This will be visible in a few minutes after you submit this form.')}
<img <img
style={{ display: 'none' }} style={{ display: 'none' }}
src={thumbnail} src={thumbnail || ThumbnailMissingImage}
alt={__('Thumbnail Preview')} alt={__('Thumbnail Preview')}
onError={() => { onError={() => {
if (updateThumbnailParams) { if (updateThumbnailParams) {