From dc1b70dd5cf9bf9d9bbc5dada7455fc6ae9c1112 Mon Sep 17 00:00:00 2001 From: Charissa Miller <48832936+clemiller@users.noreply.github.com> Date: Tue, 31 Oct 2023 10:56:46 -0400 Subject: [PATCH] fix collection import for assets --- .../collection-import.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/app/views/stix/collection/collection-import/collection-import-workflow/collection-import.component.ts b/app/src/app/views/stix/collection/collection-import/collection-import-workflow/collection-import.component.ts index 49d47b15..ba582e7e 100644 --- a/app/src/app/views/stix/collection/collection-import/collection-import-workflow/collection-import.component.ts +++ b/app/src/app/views/stix/collection/collection-import/collection-import-workflow/collection-import.component.ts @@ -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, @@ -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) );