Skip to content

Commit

Permalink
[frontend] Remove "update" or "delete" button on attack pattern withi…
Browse files Browse the repository at this point in the history
…n an incident kill chain view(#8330)
  • Loading branch information
CelineSebe authored Nov 4, 2024
1 parent 13078ec commit e11ff58
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
import { StixDomainObjectAttackPatternsKillChainQuery$variables } from '@components/common/stix_domain_objects/__generated__/StixDomainObjectAttackPatternsKillChainQuery.graphql';
import { Theme } from '@mui/material/styles/createTheme';
import { ListItemButton } from '@mui/material';
import StixCoreRelationshipPopover from '../stix_core_relationships/StixCoreRelationshipPopover';
import ItemMarkings from '../../../../components/ItemMarkings';
import MarkdownDisplay from '../../../../components/MarkdownDisplay';
import { useFormatter } from '../../../../components/i18n';
Expand All @@ -45,8 +44,6 @@ interface StixDomainObjectAttackPatternsKillChainLinesProps {

const StixDomainObjectAttackPatternsKillChainLines: FunctionComponent<StixDomainObjectAttackPatternsKillChainLinesProps> = ({
data,
paginationOptions,
onDelete,
searchTerm,
coursesOfAction,
}) => {
Expand Down Expand Up @@ -191,7 +188,7 @@ const StixDomainObjectAttackPatternsKillChainLines: FunctionComponent<StixDomain
/>
<div className={classes.nested} >
<ListItemSecondaryAction>
{coursesOfAction ? (
{coursesOfAction && (
<IconButton
onClick={() => handleToggleLine(attackPattern.id)}
aria-haspopup="true"
Expand All @@ -203,12 +200,6 @@ const StixDomainObjectAttackPatternsKillChainLines: FunctionComponent<StixDomain
<ExpandLess />
)}
</IconButton>
) : (
<StixCoreRelationshipPopover
stixCoreRelationshipId={attackPattern.id}
paginationOptions={paginationOptions}
onDelete={onDelete}
/>
)}
</ListItemSecondaryAction>
</div>
Expand Down

0 comments on commit e11ff58

Please sign in to comment.