Skip to content
Snippets Groups Projects
Unverified Commit 52f1f79c authored by youngcw's avatar youngcw Committed by GitHub
Browse files

fix #2363 broken create schedule from transaction (#2401)

* fix missing name

* note

* update how payees is created

* lint
parent 991fc4f4
No related branches found
No related tags found
No related merge requests found
import React, { useEffect, useReducer } from 'react'; import React, { useEffect, useReducer } from 'react';
import { useDispatch } from 'react-redux'; import { useDispatch } from 'react-redux';
import { getPayeesById } from 'loot-core/client/reducers/queries';
import { pushModal } from 'loot-core/src/client/actions/modals'; import { pushModal } from 'loot-core/src/client/actions/modals';
import { runQuery, liveQuery } from 'loot-core/src/client/query-helpers'; import { runQuery, liveQuery } from 'loot-core/src/client/query-helpers';
import { send, sendCatch } from 'loot-core/src/platform/client/fetch'; import { send, sendCatch } from 'loot-core/src/platform/client/fetch';
...@@ -71,7 +72,7 @@ function updateScheduleConditions(schedule, fields) { ...@@ -71,7 +72,7 @@ function updateScheduleConditions(schedule, fields) {
export function ScheduleDetails({ modalProps, actions, id, transaction }) { export function ScheduleDetails({ modalProps, actions, id, transaction }) {
const adding = id == null; const adding = id == null;
const fromTrans = transaction != null; const fromTrans = transaction != null;
const payees = usePayees({ idKey: true }); const payees = getPayeesById(usePayees());
const globalDispatch = useDispatch(); const globalDispatch = useDispatch();
const dateFormat = useDateFormat() || 'MM/dd/yyyy'; const dateFormat = useDateFormat() || 'MM/dd/yyyy';
......
---
category: Bugfix
authors: [youngcw]
---
Fix bug in create schedule from transaction
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment