mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
fix: journal number increment.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user