New: Don't initially select 0 byte files in Interactive Import

(cherry picked from commit 04bd535cfca5e25c6a2d5417c6f18d5bf5180f67)

Closes #4776
This commit is contained in:
Stevie Robinson 2024-04-28 03:07:41 +02:00 committed by Bogdan
parent 580e4becbe
commit 8b57b33c99
1 changed files with 4 additions and 2 deletions

View File

@ -48,14 +48,16 @@ class InteractiveImportRow extends Component {
artist, artist,
album, album,
tracks, tracks,
quality quality,
size
} = this.props; } = this.props;
if ( if (
artist && artist &&
album != null && album != null &&
tracks.length && tracks.length &&
quality quality &&
size > 0
) { ) {
this.props.onSelectedChange({ id, value: true }); this.props.onSelectedChange({ id, value: true });
} }