|
|
|
@ -43,6 +43,7 @@ class QueueConnector extends Component {
|
|
|
|
|
const {
|
|
|
|
|
useCurrentPage,
|
|
|
|
|
fetchQueue,
|
|
|
|
|
fetchQueueStatus,
|
|
|
|
|
gotoQueueFirstPage
|
|
|
|
|
} = this.props;
|
|
|
|
|
|
|
|
|
@ -53,6 +54,8 @@ class QueueConnector extends Component {
|
|
|
|
|
} else {
|
|
|
|
|
gotoQueueFirstPage();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fetchQueueStatus();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidUpdate(prevProps) {
|
|
|
|
@ -152,6 +155,7 @@ QueueConnector.propTypes = {
|
|
|
|
|
useCurrentPage: PropTypes.bool.isRequired,
|
|
|
|
|
items: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
|
|
|
fetchQueue: PropTypes.func.isRequired,
|
|
|
|
|
fetchQueueStatus: PropTypes.func.isRequired,
|
|
|
|
|
gotoQueueFirstPage: PropTypes.func.isRequired,
|
|
|
|
|
gotoQueuePreviousPage: PropTypes.func.isRequired,
|
|
|
|
|
gotoQueueNextPage: PropTypes.func.isRequired,
|
|
|
|
|