Skip to content

Commit 7f22699

Browse files
committed
fix: lint
1 parent 8e74e1b commit 7f22699

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/home/report/ReportActionItemParentAction.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function ReportActionItemParentAction({
8989
const ancestorIDsToSelect = new Set(allAncestors.map(({report: reportAncestor}) => reportAncestor.reportID));
9090
return Object.entries(allPairs ?? {}).reduce((acc, [key, value]) => {
9191
const id = key.split('_').at(1);
92-
if (ancestorIDsToSelect.has(id ?? '') && acc) {
92+
if (id && ancestorIDsToSelect.has(id) && acc) {
9393
acc[key] = value;
9494
}
9595
return acc;

0 commit comments

Comments
 (0)