mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feat: fix accounts issue.
This commit is contained in:
7
client/src/containers/Views/withCurrentView.js
Normal file
7
client/src/containers/Views/withCurrentView.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
const mapStateToProps = (state, props) => ({
|
||||
currentViewId: props.match.params.custom_view_id,
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps);
|
||||
@@ -6,11 +6,9 @@ import {
|
||||
|
||||
|
||||
export const mapStateToProps = (state, props) => {
|
||||
const { viewId } = props;
|
||||
|
||||
return {
|
||||
viewMeta: getViewMeta(state, viewId),
|
||||
viewItem: getViewItem(state, viewId),
|
||||
viewMeta: getViewMeta(state, props),
|
||||
viewItem: getViewItem(state, props),
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user