Skip to content

Commit 4377037

Browse files
committed
[frontend] fix lint
1 parent fe57986 commit 4377037

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

opencti-platform/opencti-front/src/private/components/common/lists/SearchScopeElement.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import useAttributes from '../../../../utils/hooks/useAttributes';
1212
import { displayEntityTypeForTranslation } from '../../../../utils/String';
1313

1414
interface SearchScopeElementProps {
15-
name: string,
16-
disabled?: boolean,
17-
searchScope: Record<string, string[]>,
18-
setSearchScope: React.Dispatch<React.SetStateAction<Record<string, string[]>>>,
19-
availableRelationFilterTypes?: Record<string, string[]>,
15+
name: string;
16+
disabled?: boolean;
17+
searchScope: Record<string, string[]>;
18+
setSearchScope: React.Dispatch<React.SetStateAction<Record<string, string[]>>>;
19+
availableRelationFilterTypes?: Record<string, string[]>;
2020
}
2121

2222
const SearchScopeElement = ({
@@ -56,7 +56,7 @@ const SearchScopeElement = ({
5656
}));
5757
};
5858

59-
let color: 'secondary' | 'primary' = searchScope[name] && searchScope[name].length > 0
59+
const color: 'secondary' | 'primary' = searchScope[name] && searchScope[name].length > 0
6060
? 'secondary'
6161
: 'primary';
6262

0 commit comments

Comments
 (0)