Define default value for 'thumbnailError'

## Issue
"thumbnail is invalid" not reset with new thumbnail upload #6044
https://github.com/lbryio/lbry-desktop/issues/6044

## Change
Defining a default value will cover both CLEAR_PUBLISH and DO_PREPARE_EDIT
This commit is contained in:
infiinte-persistence 2021-05-11 11:02:48 +08:00
parent 41ef1117e5
commit 3b853b6ddd
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0
2 changed files with 3 additions and 0 deletions

1
dist/bundle.es.js vendored
View file

@ -6056,6 +6056,7 @@ const defaultState$4 = {
thumbnail_url: '',
thumbnailPath: '',
uploadThumbnailStatus: API_DOWN,
thumbnailError: undefined,
description: '',
language: '',
releaseTime: undefined,

View file

@ -22,6 +22,7 @@ type PublishState = {
thumbnail_url: string,
thumbnailPath: string,
uploadThumbnailStatus: string,
thumbnailError: ?boolean,
description: string,
language: string,
releaseTime: ?string,
@ -55,6 +56,7 @@ const defaultState: PublishState = {
thumbnail_url: '',
thumbnailPath: '',
uploadThumbnailStatus: THUMBNAIL_STATUSES.API_DOWN,
thumbnailError: undefined,
description: '',
language: '',
releaseTime: undefined,