Skip to content

Commit

Permalink
filter out current technique from list of parent techniques (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
erinehall authored Jan 31, 2025
1 parent f62e8f1 commit 2ddbf46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class ListEditComponent implements OnInit, AfterContentChecked {
this.type = 'technique';
const subscription = this.restAPIConnectorService.getAllTechniques().subscribe({
next: (r: Paginated<Technique>) => {
this.allObjects = r.data.filter((t) => !t.is_subtechnique);
this.allObjects = r.data.filter((t) => !t.is_subtechnique && t.stixID !== (this.config.object as Technique).stixID);
const selectableTechniqueIDs = r.data.map(t => t.stixID);
this.select = new SelectionModel<string>(false, selectableTechniqueIDs);
this.dataLoaded = true;
Expand Down

0 comments on commit 2ddbf46

Please sign in to comment.