//
// 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 { 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';
},
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