|
|
@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import hasDifferentItems from 'Utilities/Object/hasDifferentItems';
|
|
|
|
import hasDifferentItems from 'Utilities/Object/hasDifferentItems';
|
|
|
|
import getSelectedIds from 'Utilities/Table/getSelectedIds';
|
|
|
|
import getSelectedIds from 'Utilities/Table/getSelectedIds';
|
|
|
|
|
|
|
|
import removeOldSelectedState from 'Utilities/Table/removeOldSelectedState';
|
|
|
|
import selectAll from 'Utilities/Table/selectAll';
|
|
|
|
import selectAll from 'Utilities/Table/selectAll';
|
|
|
|
import toggleSelected from 'Utilities/Table/toggleSelected';
|
|
|
|
import toggleSelected from 'Utilities/Table/toggleSelected';
|
|
|
|
import { align, icons } from 'Helpers/Props';
|
|
|
|
import { align, icons } from 'Helpers/Props';
|
|
|
@ -61,7 +62,10 @@ class Queue extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
componentDidUpdate(prevProps) {
|
|
|
|
componentDidUpdate(prevProps) {
|
|
|
|
if (hasDifferentItems(prevProps.items, this.props.items)) {
|
|
|
|
if (hasDifferentItems(prevProps.items, this.props.items)) {
|
|
|
|
this.setState({ selectedState: {} });
|
|
|
|
this.setState((state) => {
|
|
|
|
|
|
|
|
return removeOldSelectedState(state, prevProps.items);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|