Skip to content

Commit

Permalink
fix collection import for assets
Browse files Browse the repository at this point in the history
  • Loading branch information
clemiller committed Oct 31, 2023
1 parent 966b5e7 commit dc1b70d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ export class CollectionImportComponent implements OnInit {
"course-of-action": "mitigations",
"x-mitre-tactic": "tactics",
"x-mitre-data-source": "datasources",
"x-mitre-data-component": "datacomponents"
"x-mitre-data-component": "datacomponents",
"x-mitre-asset": "assets",
"x-mitre-matrix": "matrices",

}

constructor(public route: ActivatedRoute,
Expand Down Expand Up @@ -588,7 +591,7 @@ export class CollectionImportComponent implements OnInit {
new Campaign(raw)
);
break;
case 'asset': // asset
case 'x-mitre-asset': // asset
this.object_import_categories.asset[category].push(
new Asset(raw)
);
Expand Down

0 comments on commit dc1b70d

Please sign in to comment.