Skip to content

Commit

Permalink
fix: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamondYuan committed Nov 19, 2024
1 parent 3d085e2 commit 4642a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ProjectSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ class ProjectSelector extends React.Component<ProjectSelectorProps> {

// Function to check if a project or its ancestors are excluded
const isProjectOrAncestorExcluded = (projectId: string): boolean => {
let current: string | null = projectId
let current: string | undefined = projectId
while (current) {
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
current = parentProject?.parentProjectId
}
return false
}
Expand Down

0 comments on commit 4642a87

Please sign in to comment.