Skip to content

Commit

Permalink
fix : fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: EunJiJung <[email protected]>
  • Loading branch information
bianbbc87 committed Sep 21, 2024
1 parent 3eb6e4e commit d055ac3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/app/settings/components/repos-list/repos-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,10 @@ export class ReposList extends React.Component<
action: () => this.setState({projectProperty: 'all'})
},
...projectValues
.filter(project => project && project.trim() !== '')
.filter(project => project && project.trim() !== '')
.map(project => ({
title: project,
action: () => this.setState({ projectProperty: project })
action: () => this.setState({projectProperty: project})
}))
];

Expand Down Expand Up @@ -1043,7 +1043,7 @@ export class ReposList extends React.Component<

private filteredName(repos: models.Repository[], name: string) {
const trimmedName = name.trim();
if (trimmedName === ''){
if (trimmedName === '') {
return repos;
}
const newRepos = repos.filter(repo => repo.name && repo.name.toLowerCase().includes(trimmedName.toLowerCase()));
Expand Down

0 comments on commit d055ac3

Please sign in to comment.