From 08b92eab08e1922324ef05e9f16c61e499269f28 Mon Sep 17 00:00:00 2001 From: Michael Carenzo <79934822+mikecarenzo@users.noreply.github.com> Date: Wed, 28 Feb 2024 15:46:35 -0500 Subject: [PATCH] address feedback --- .../src/assets/configuration/app.config.serializer.ts | 2 +- src/mappings_editor/src/assets/configuration/app.config.ts | 6 +++--- .../Application/Configuration/MappingFileSerializer.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mappings_editor/src/assets/configuration/app.config.serializer.ts b/src/mappings_editor/src/assets/configuration/app.config.serializer.ts index b560ff0..95301ce 100644 --- a/src/mappings_editor/src/assets/configuration/app.config.serializer.ts +++ b/src/mappings_editor/src/assets/configuration/app.config.serializer.ts @@ -231,7 +231,7 @@ export class UniversalSchemaMappingFileSerializer extends MappingFileSerializer obj: Partial ): MappingObjectImport { // Compute technology domain - let target_framework = obj.technology_domain + let target_framework = obj.technology_domain; if(target_framework) { target_framework = `mitre_attack_${ target_framework }`; } diff --git a/src/mappings_editor/src/assets/configuration/app.config.ts b/src/mappings_editor/src/assets/configuration/app.config.ts index a7dadaf..42f38ca 100644 --- a/src/mappings_editor/src/assets/configuration/app.config.ts +++ b/src/mappings_editor/src/assets/configuration/app.config.ts @@ -7,9 +7,9 @@ const config: AppConfiguration = { file_type_extension: "json", native_frameworks_manifest: manifest, frameworks_with_navigator_support: new Map([ - ["mitre_attack_enterprise", "enterprise"], - ["mitre_attack_mobile", "mobile"], - ["mitre_attack_ics", "ics"] + ["mitre_attack_ics", "ics"], + ["mitre_attack_mobile", "mobile"], + ["mitre_attack_enterprise", "enterprise"] ]), menus: { help_menu: { diff --git a/src/mappings_editor/src/assets/scripts/Application/Configuration/MappingFileSerializer.ts b/src/mappings_editor/src/assets/scripts/Application/Configuration/MappingFileSerializer.ts index 319fd17..c5768af 100644 --- a/src/mappings_editor/src/assets/scripts/Application/Configuration/MappingFileSerializer.ts +++ b/src/mappings_editor/src/assets/scripts/Application/Configuration/MappingFileSerializer.ts @@ -40,7 +40,7 @@ export class MappingFileSerializer { mapping_objects[i] = this.compressObjectExport(file.mapping_objects[i], file); } // Return file - return JSON.stringify({ ...file, mapping_objects }, null, 4) + return JSON.stringify({ ...file, mapping_objects }, null, 4); } /**