Skip to content

Commit

Permalink
fix : fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: EunJiJung <bianbbc87@gmail.com>
  • Loading branch information
bianbbc87 committed Nov 16, 2024
1 parent 5452c6e commit 0ac1a42
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 @@ -1066,7 +1066,7 @@ export class ReposList extends React.Component<
>>>>>>> 0a23f1847 (refactor : delete sort dropdown and fix eslint)
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 0ac1a42

Please sign in to comment.