} from '@material-ui/core';
import { RootState } from 'store/store';
import {
- removePropertyFromCreateCollectionForm,
COLLECTION_CREATE_FORM_SELECTOR,
- CollectionProperties
+ CollectionProperties,
+ COLLECTION_CREATE_FORM_NAME
} from 'store/collections/collection-create-actions';
import { ArvadosTheme } from 'common/custom-theme';
import { getPropertyChip } from '../resource-properties-form/property-chip';
+import { removePropertyFromResourceForm } from 'store/resources/resources-actions';
type CssRules = 'tag';
};
const mapDispatchToProps = (dispatch: Dispatch): CreateCollectionPropertiesListActionProps => ({
- handleDelete: (key: string, value: string) => dispatch<any>(removePropertyFromCreateCollectionForm(key, value))
+ handleDelete: (key: string, value: string) => dispatch<any>(removePropertyFromResourceForm(key, value, COLLECTION_CREATE_FORM_NAME))
});
type CreateCollectionPropertiesListProps = CreateCollectionPropertiesListDataProps &