X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/ecd7fabba5f2989ec577c3313dcc82c94f924eae..6e0bfefd885bb7ebb445f60f3985bbbfca361935:/src/views-components/search-bar/search-bar-advanced-properties-view.tsx diff --git a/src/views-components/search-bar/search-bar-advanced-properties-view.tsx b/src/views-components/search-bar/search-bar-advanced-properties-view.tsx index f3509a02..6ebef156 100644 --- a/src/views-components/search-bar/search-bar-advanced-properties-view.tsx +++ b/src/views-components/search-bar/search-bar-advanced-properties-view.tsx @@ -2,25 +2,25 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from 'react'; +import React from 'react'; import { Dispatch, compose } from 'redux'; import { connect } from 'react-redux'; import { InjectedFormProps, formValueSelector } from 'redux-form'; import { Grid, withStyles, StyleRulesCallback, WithStyles, Button } from '@material-ui/core'; -import { RootState } from '~/store/store'; +import { RootState } from 'store/store'; import { SEARCH_BAR_ADVANCED_FORM_NAME, changeAdvancedFormProperty, resetAdvancedFormProperty -} from '~/store/search-bar/search-bar-actions'; -import { PropertyValue } from '~/models/search-bar'; -import { ArvadosTheme } from '~/common/custom-theme'; -import { SearchBarKeyField, SearchBarValueField } from '~/views-components/form-fields/search-bar-form-fields'; -import { Chips } from '~/components/chips/chips'; -import { formatPropertyValue } from "~/common/formatters"; -import { Vocabulary } from '~/models/vocabulary'; +} from 'store/search-bar/search-bar-actions'; +import { PropertyValue } from 'models/search-bar'; +import { ArvadosTheme } from 'common/custom-theme'; +import { SearchBarKeyField, SearchBarValueField } from 'views-components/form-fields/search-bar-form-fields'; +import { Chips } from 'components/chips/chips'; +import { formatPropertyValue } from "common/formatters"; +import { Vocabulary } from 'models/vocabulary'; import { connectVocabulary } from '../resource-properties-form/property-field-common'; -import * as _ from 'lodash'; +import { isEqual } from 'lodash'; type CssRules = 'label' | 'button'; @@ -67,7 +67,7 @@ const mapDispatchToProps = (dispatch: Dispatch) => ({ }, addProp: (propertyValue: PropertyValue, properties: PropertyValue[]) => { // Remove potential duplicates - properties = properties.filter(x => ! _.isEqual( + properties = properties.filter(x => ! isEqual( { key: x.keyID || x.key, value: x.valueID || x.value