We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e74e1b commit 7f22699Copy full SHA for 7f22699
1 file changed
src/pages/home/report/ReportActionItemParentAction.tsx
@@ -89,7 +89,7 @@ function ReportActionItemParentAction({
89
const ancestorIDsToSelect = new Set(allAncestors.map(({report: reportAncestor}) => reportAncestor.reportID));
90
return Object.entries(allPairs ?? {}).reduce((acc, [key, value]) => {
91
const id = key.split('_').at(1);
92
- if (ancestorIDsToSelect.has(id ?? '') && acc) {
+ if (id && ancestorIDsToSelect.has(id) && acc) {
93
acc[key] = value;
94
}
95
return acc;
0 commit comments