mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
fix: manual journal detail.
This commit is contained in:
@@ -270,7 +270,7 @@ function MakeJournalEntriesForm({
|
||||
|
||||
export default compose(
|
||||
withJournalsActions,
|
||||
withManualJournalDetail,
|
||||
withManualJournalDetail(),
|
||||
withAccountsActions,
|
||||
withDashboardActions,
|
||||
withMediaActions,
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { getManualJournal } from 'store/manualJournals/manualJournals.reducers';
|
||||
import { getManualJournalByIdFactory } from 'store/manualJournals/manualJournals.selectors';
|
||||
|
||||
const mapStateToProps = (state, props) => ({
|
||||
manualJournal: getManualJournal(state, props.manualJournalId),
|
||||
});
|
||||
export default () => {
|
||||
const getManualJournalById = getManualJournalByIdFactory();
|
||||
|
||||
export default connect(mapStateToProps);
|
||||
const mapStateToProps = (state, props) => ({
|
||||
manualJournal: getManualJournalById(state, props),
|
||||
});
|
||||
return connect(mapStateToProps);
|
||||
};
|
||||
Reference in New Issue
Block a user