diff --git a/packages/desktop-client/src/components/schedules/ScheduleDetails.jsx b/packages/desktop-client/src/components/schedules/ScheduleDetails.jsx index 6cce5e686b222b65817c972e09ec278392e382b0..96cc47d2939a0c652d19911974539b376e4d9f4c 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.md new file mode 100644 index 0000000000000000000000000000000000000000..9108bd0a729230e643a36f4cf0d1577025772fda --- /dev/null +++ b/upcoming-release-notes/2401.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [youngcw] +--- + +Fix bug in create schedule from transaction