Skip to content

Commit

Permalink
cleaned up warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed May 19, 2021
1 parent 90940ff commit 12173e6
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions ui/src/app/form/component/fields/FilterTargetField.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import React from 'react';
import Form from 'react-bootstrap/Form';
import Dropdown from 'react-bootstrap/Dropdown';
import Translate from '../../../i18n/components/translate';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faAsterisk, faCaretDown, faCaretUp, faCheck, faPlus, faTimes, faTrash } from '@fortawesome/free-solid-svg-icons';
import { faAsterisk, faCaretDown, faCaretUp, faPlus, faTrash } from '@fortawesome/free-solid-svg-icons';
import { useTranslator } from '../../../i18n/hooks';
import { InfoIcon } from '../InfoIcon';
import ContentEditable from 'react-contenteditable';
Expand Down
1 change: 0 additions & 1 deletion ui/src/app/metadata/Metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { MetadataXml } from './view/MetadataXml';
import { MetadataComparison } from './view/MetadataComparison';
import { MetadataVersion } from './view/MetadataVersion';
import { MetadataEdit } from './view/MetadataEdit';
import { Filter } from './Filter';

export function Metadata () {

Expand Down
2 changes: 0 additions & 2 deletions ui/src/app/metadata/domain/filter/BaseFilterDefinition.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { removeNull } from "../../../core/utility/remove_null";

export const BaseFilterDefinition = {
parser: (changes) => changes,
formatter: (changes) => changes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const NameIDFilterWizard = {
const names = filters.map(s => s.entityId);

return (formData, errors) => {
if (filters.indexOf(formData.name) > -1) {
if (names.indexOf(formData.name) > -1) {
errors.name.addError('message.name-unique');
}

Expand Down
4 changes: 2 additions & 2 deletions ui/src/app/metadata/editor/MetadataFilterEditor.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { faExclamationTriangle, faSave, faSpinner } from '@fortawesome/free-solid-svg-icons';
import { faExclamationTriangle } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { useHistory, useParams, Prompt } from 'react-router';
import { useHistory, useParams } from 'react-router';
import Alert from 'react-bootstrap/Alert';

import Translate from '../../i18n/components/translate';
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/metadata/wizard/MetadataFilterTypeSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function MetadataFilterTypeSelector({ types = [], children, actions}) {

const translator = useTranslator();

const { register, handleSubmit, getValues, watch } = useForm({
const { register, handleSubmit, watch } = useForm({
mode: 'onChange',
reValidateMode: 'onChange',
defaultValues: {
Expand Down

0 comments on commit 12173e6

Please sign in to comment.