Skip to content

Commit 37df55b

Browse files
committed
tweak memo per review
1 parent f376739 commit 37df55b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

apps/site/components/EOL/EOLModal/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ const EOLModal: FC<EOLModalProps> = ({
3535
SEVERITY_ORDER.indexOf(a.severity) -
3636
SEVERITY_ORDER.indexOf(b.severity)
3737
),
38-
[vulnerabilities]
38+
// Only change when the vulnerabilities change
39+
// eslint-disable-next-line react-hooks/exhaustive-deps
40+
[vulnerabilities.length]
3941
);
4042

4143
return (

0 commit comments

Comments
 (0)