fix: journal number increment.

This commit is contained in:
Ahmed Bouhuolia
2020-11-07 14:28:25 +02:00
parent cc1de9c897
commit acd74fd044
14 changed files with 146 additions and 72 deletions

View File

@@ -1,13 +1,14 @@
import { connect } from 'react-redux';
import { getCustomersItems } from 'store/customers/customers.selectors';
import { getCustomersItems, getCustomersListFactory } from 'store/customers/customers.selectors';
import { getResourceViews } from 'store/customViews/customViews.selectors';
export default (mapState) => {
const getCustomersList = getCustomersListFactory();
const mapStateToProps = (state, props) => {
const mapped = {
customersViews: getResourceViews(state, props, 'customers'),
customersItems: Object.values(state.customers.items),
customersItems: getCustomersList(state, props),
customers: getCustomersItems(state, state.customers.currentViewId),
customersLoading: state.customers.loading,
customerErrors: state.customers.errors,