Render a schedule rule with the mapped payee id; fixes crash
This commit is contained in:
parent
c9a543310d
commit
d98b8c1d73
1 changed files with 3 additions and 3 deletions
|
@ -238,9 +238,9 @@ function ScheduleValue({ value }) {
|
|||
field="rule"
|
||||
data={schedules}
|
||||
describe={s => {
|
||||
let { payee } = extractScheduleConds(s._conditions);
|
||||
return payee
|
||||
? `${byId[payee.value].name} (${s.next_date})`
|
||||
let payeeId = s._payee;
|
||||
return payeeId
|
||||
? `${byId[payeeId].name} (${s.next_date})`
|
||||
: `Next: ${s.next_date}`;
|
||||
}}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue