mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 06:40:31 +00:00
feat: Receivable aging summary front-end.
This commit is contained in:
@@ -2,7 +2,6 @@ import { createReducer } from '@reduxjs/toolkit';
|
||||
import { createTableQueryReducers } from 'store/queryReducers';
|
||||
|
||||
import t from 'store/types';
|
||||
import { omit } from 'lodash';
|
||||
|
||||
const initialState = {
|
||||
items: {},
|
||||
@@ -90,7 +89,5 @@ const reducer = createReducer(initialState, {
|
||||
export default createTableQueryReducers('expenses', reducer);
|
||||
|
||||
export const getExpenseById = (state, id) => {
|
||||
// debugger;
|
||||
// state.items = omit(state.items, [id]);
|
||||
return state.expenses.items[id];
|
||||
return state.expenses.items[id] || {};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user