Progress loading check for null, not 0
This commit is contained in:
@ -173,7 +173,7 @@ class LibraryTracks extends React.Component {
|
||||
} = this.state;
|
||||
let { tracks } = this.props;
|
||||
|
||||
if (loading_progress < 1) {
|
||||
if (loading_progress !== null) {
|
||||
return <Loader body loading progress={loading_progress} />;
|
||||
}
|
||||
|
||||
@ -214,7 +214,7 @@ class LibraryTracks extends React.Component {
|
||||
filter,
|
||||
per_page,
|
||||
} = this.state;
|
||||
const loading = loading_progress < 1;
|
||||
const loading = loading_progress !== null;
|
||||
|
||||
const source_options = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user