|
|
@ -45,11 +45,13 @@ class Queue extends Component {
|
|
|
|
componentDidUpdate(prevProps) {
|
|
|
|
componentDidUpdate(prevProps) {
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
items,
|
|
|
|
items,
|
|
|
|
|
|
|
|
isFetching,
|
|
|
|
isMoviesFetching
|
|
|
|
isMoviesFetching
|
|
|
|
} = this.props;
|
|
|
|
} = this.props;
|
|
|
|
|
|
|
|
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
(!isMoviesFetching && prevProps.isMoviesFetching) ||
|
|
|
|
(!isMoviesFetching && prevProps.isMoviesFetching) ||
|
|
|
|
|
|
|
|
(!isFetching && prevProps.isFetching) ||
|
|
|
|
(hasDifferentItems(prevProps.items, items) && !items.some((e) => e.movieId))
|
|
|
|
(hasDifferentItems(prevProps.items, items) && !items.some((e) => e.movieId))
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
this.setState((state) => {
|
|
|
|
this.setState((state) => {
|
|
|
|