mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
fix: users reducer.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { getExpensesCurrentPageFactory } from 'store/users/users.selectors';
|
||||
|
||||
export default (mapState) => {
|
||||
const mapStateToProps = (state, props) => {
|
||||
const mapped = {
|
||||
usersList: state.users.list,
|
||||
usersList: getExpensesCurrentPageFactory(state, props),
|
||||
usersLoading: state.users.loading,
|
||||
};
|
||||
return mapState ? mapState(mapped, state, props) : mapped;
|
||||
|
||||
Reference in New Issue
Block a user