From 3d085e2381bb7fc89bb60202f1abbd6ebe54ffff Mon Sep 17 00:00:00 2001 From: DiamondYuan Date: Tue, 19 Nov 2024 11:05:28 +0800 Subject: [PATCH] fix: fix eslint eror --- src/components/ProjectSelector.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/ProjectSelector.tsx b/src/components/ProjectSelector.tsx index 7477311e..ee24f272 100644 --- a/src/components/ProjectSelector.tsx +++ b/src/components/ProjectSelector.tsx @@ -42,6 +42,7 @@ class ProjectSelector extends React.Component { if (current === this.props.excludeProjectId) { return true } + // eslint-disable-next-line no-loop-func const parentProject = allProjects.find((p) => p.id === current) current = parentProject?.parentProjectId ?? null }