Commit deff919 1 parent 18227f3 commit deff919 Copy full SHA for deff919
File tree 1 file changed +3
-3
lines changed
packages/web/src/components/create-playlist
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ const PlaylistForm = ({
171
171
172
172
const onSave = ( ) => {
173
173
const nameIsEmpty = ! formFields . playlist_name
174
- const artworkIsEmpty = ! formFields . artwork . file && ! coverArt
174
+ const artworkIsEmpty = ! formFields . artwork ? .file && ! coverArt
175
175
if ( nameIsEmpty || artworkIsEmpty ) {
176
176
setErrors ( {
177
177
...errors ,
@@ -189,10 +189,10 @@ const PlaylistForm = ({
189
189
< div className = { styles . playlistForm } >
190
190
< UploadArtwork
191
191
defaultPopupOpen = { initialFocusedField === 'artwork' }
192
- artworkUrl = { formFields . artwork . url || coverArt }
192
+ artworkUrl = { formFields . artwork ? .url || coverArt }
193
193
onDropArtwork = { onDropArtwork }
194
194
error = { errors . artwork }
195
- imageProcessingError = { Boolean ( formFields . artwork . error ) }
195
+ imageProcessingError = { Boolean ( formFields . artwork ? .error ) }
196
196
onOpenPopup = { onOpenArtworkPopup }
197
197
onClosePopup = { onCloseArtworkPopup }
198
198
isImageAutogenerated = { formFields . is_image_autogenerated }
You can’t perform that action at this time.
0 commit comments