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"
|
field="rule"
|
||||||
data={schedules}
|
data={schedules}
|
||||||
describe={s => {
|
describe={s => {
|
||||||
let { payee } = extractScheduleConds(s._conditions);
|
let payeeId = s._payee;
|
||||||
return payee
|
return payeeId
|
||||||
? `${byId[payee.value].name} (${s.next_date})`
|
? `${byId[payeeId].name} (${s.next_date})`
|
||||||
: `Next: ${s.next_date}`;
|
: `Next: ${s.next_date}`;
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue