Skip to content

Commit b737dd1

Browse files
authored
Merge pull request #10694 from afilp/patch-42
Remove unneeded check due to optional chaining
2 parents 8b164de + 0d1f566 commit b737dd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/crm/src/deals/OnlyMineInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const OnlyMineInput = (_: { alwaysOn: boolean; source: string }) => {
1212
if (typeof filterValues.sales_id !== 'undefined') {
1313
delete newFilterValues.sales_id;
1414
} else {
15-
newFilterValues.sales_id = identity && identity?.id;
15+
newFilterValues.sales_id = identity?.id;
1616
}
1717
setFilters(newFilterValues, displayedFilters);
1818
};

0 commit comments

Comments
 (0)