Skip to content

Commit

Permalink
Indexer Priority ESLint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
markus101 authored and ta264 committed Sep 27, 2020
1 parent d3ecc05 commit 4a19a01
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Expand Up @@ -132,9 +132,10 @@ function EditIndexerModalContent(props) {
);
})
}
<FormGroup
advancedSettings={advancedSettings}
isAdvanced={true}>
<FormGroup
advancedSettings={advancedSettings}
isAdvanced={true}
>
<FormLabel>Indexer Priority</FormLabel>

<FormInputGroup
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/Settings/Indexers/Indexers/Indexer.js
Expand Up @@ -114,7 +114,7 @@ class Indexer extends Component {
Interactive Search
</Label>
}

{
showPriority &&
<Label kind={kinds.DEFAULT}>
Expand Down Expand Up @@ -156,11 +156,13 @@ class Indexer extends Component {
Indexer.propTypes = {
id: PropTypes.number.isRequired,
name: PropTypes.string.isRequired,
priority: PropTypes.number.isRequired,
enableRss: PropTypes.bool.isRequired,
enableAutomaticSearch: PropTypes.bool.isRequired,
enableInteractiveSearch: PropTypes.bool.isRequired,
supportsRss: PropTypes.bool.isRequired,
supportsSearch: PropTypes.bool.isRequired,
showPriority: PropTypes.bool.isRequired,
onCloneIndexerPress: PropTypes.func.isRequired,
onConfirmDeleteIndexer: PropTypes.func.isRequired
};
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/Settings/Indexers/Indexers/Indexers.js
Expand Up @@ -62,8 +62,8 @@ class Indexers extends Component {
isAddIndexerModalOpen,
isEditIndexerModalOpen
} = this.state;
const showPriority = items.some((index) => index.priority != 25);

const showPriority = items.some((index) => index.priority !== 25);

return (
<FieldSet legend="Indexers">
Expand Down

0 comments on commit 4a19a01

Please sign in to comment.