A local-first personal finance app
fix #2363 broken create schedule from transaction (#2401)
youngcw52f1f79c01b4
diff --git a/packages/desktop-client/src/components/schedules/ScheduleDetails.jsx b/packages/desktop-client/src/components/schedules/ScheduleDetails.jsxindex 6cce5e686b..96cc47d293 100644--- a/packages/desktop-client/src/components/schedules/ScheduleDetails.jsx+++ b/packages/desktop-client/src/components/schedules/ScheduleDetails.jsx@@ -1,6 +1,7 @@import React, { useEffect, useReducer } from 'react';import { useDispatch } from 'react-redux';+import { getPayeesById } from 'loot-core/client/reducers/queries';import { pushModal } from 'loot-core/src/client/actions/modals';import { runQuery, liveQuery } from 'loot-core/src/client/query-helpers';import { send, sendCatch } from 'loot-core/src/platform/client/fetch';@@ -71,7 +72,7 @@ function updateScheduleConditions(schedule, fields) {export function ScheduleDetails({ modalProps, actions, id, transaction }) {const adding = id == null;const fromTrans = transaction != null;- const payees = usePayees({ idKey: true });+ const payees = getPayeesById(usePayees());const globalDispatch = useDispatch();const dateFormat = useDateFormat() || 'MM/dd/yyyy';diff --git a/upcoming-release-notes/2401.md b/upcoming-release-notes/2401.mdnew file mode 100644index 0000000000..9108bd0a72--- /dev/null+++ b/upcoming-release-notes/2401.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [youngcw]+---++Fix bug in create schedule from transaction