Commit 95ba3a2
Fix: use truthiness check for parentReportIDForUpdate to handle undefined parentReport
When parentReport is undefined (originalReport is falsy in caller),
parentReport?.reportID !== reportID evaluates to true (undefined !== string),
causing parentReportIDForUpdate to be assigned undefined instead of
falling through to report?.parentReportID.
Co-authored-by: dukenv0307 <dukenv0307@users.noreply.github.com>1 parent d17041b commit 95ba3a2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5509 | 5509 | | |
5510 | 5510 | | |
5511 | 5511 | | |
5512 | | - | |
| 5512 | + | |
5513 | 5513 | | |
5514 | 5514 | | |
5515 | 5515 | | |
| |||
0 commit comments