From ab87c9e59d73efb141c907faf77ffe71469fde9f Mon Sep 17 00:00:00 2001 From: Bonsai8863 <131906254+Bonsai8863@users.noreply.github.com> Date: Mon, 17 Jun 2024 09:21:34 -0400 Subject: [PATCH] [frontend] Updated filter types --- .../StixCoreRelationshipCreationFromControlledDial.tsx | 3 ++- .../StixDomainObjectAttackPatternsKillChain.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/StixCoreRelationshipCreationFromControlledDial.tsx b/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/StixCoreRelationshipCreationFromControlledDial.tsx index 51eec8967fa60..5b37f1319a3db 100644 --- a/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/StixCoreRelationshipCreationFromControlledDial.tsx +++ b/opencti-platform/opencti-front/src/private/components/common/stix_core_relationships/StixCoreRelationshipCreationFromControlledDial.tsx @@ -6,7 +6,7 @@ import { Add, ChevronRightOutlined } from '@mui/icons-material'; import { QueryRenderer, commitMutation, handleErrorInForm } from 'src/relay/environment'; import { UserContext } from 'src/utils/hooks/useAuth'; import ListLines from 'src/components/list_lines/ListLines'; -import { FilterGroup, emptyFilterGroup, useRemoveIdAndIncorrectKeysFromFilterGroupObject } from 'src/utils/filters/filtersUtils'; +import { emptyFilterGroup, useRemoveIdAndIncorrectKeysFromFilterGroupObject } from 'src/utils/filters/filtersUtils'; import useFiltersState from 'src/utils/filters/useFiltersState'; import useEntityToggle from 'src/utils/hooks/useEntityToggle'; import { resolveRelationsTypes } from 'src/utils/Relation'; @@ -32,6 +32,7 @@ import { } from './StixCoreRelationshipCreationFromEntity'; import { StixCoreRelationshipCreationFromEntityQuery$data } from './__generated__/StixCoreRelationshipCreationFromEntityQuery.graphql'; import Drawer from '../drawer/Drawer'; +import { FilterGroup } from '../../../../utils/filters/filtersHelpers-types'; export const ViewContainer = styled('div')({ minHeight: '100%' }); diff --git a/opencti-platform/opencti-front/src/private/components/common/stix_domain_objects/StixDomainObjectAttackPatternsKillChain.tsx b/opencti-platform/opencti-front/src/private/components/common/stix_domain_objects/StixDomainObjectAttackPatternsKillChain.tsx index ee1239d983b9d..41bd45b21adcc 100644 --- a/opencti-platform/opencti-front/src/private/components/common/stix_domain_objects/StixDomainObjectAttackPatternsKillChain.tsx +++ b/opencti-platform/opencti-front/src/private/components/common/stix_domain_objects/StixDomainObjectAttackPatternsKillChain.tsx @@ -5,7 +5,6 @@ import SearchInput from 'src/components/SearchInput'; import { useFormatter } from 'src/components/i18n'; import useHelper from 'src/utils/hooks/useHelper'; import { HandleAddFilter } from 'src/utils/hooks/useLocalStorage'; -import { Filter, FilterGroup } from 'src/utils/filters/filtersUtils'; import FilterIconButton from 'src/components/FilterIconButton'; import { ProgressWrench } from 'mdi-material-ui'; import { export_max_size } from 'src/utils/utils'; @@ -27,6 +26,7 @@ import { } from './__generated__/StixDomainObjectAttackPatternsKillChain_triggers.graphql'; import { CreateRelationshipContext } from '../menus/CreateRelationshipContextProvider'; import StixCoreObjectsExports from '../stix_core_objects/StixCoreObjectsExports'; +import { Filter, FilterGroup } from '../../../../utils/filters/filtersHelpers-types'; const StyledParameters = styled('div')({ marginBottom: 20,