Skip to content

Commit f43ac7c

Browse files
committed
fix layer loading for custom bundles
1 parent c61e059 commit f43ac7c

4 files changed

Lines changed: 13 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
The creation of the tag can be disabled with the --no-git-tag-version if desired.
1010
-->
1111

12+
# 5.3.1 - 6 April 2026
13+
14+
## Fixes
15+
- Fixed an issue where layers created from a custom STIX bundle would fail to load when re-opened via "Open Existing Layer". See [#775](https://github.com/mitre-attack/attack-navigator/issues/775).
16+
17+
1218
# 5.3.0 - 15 January 2026
1319

1420
## Improvements

nav-app/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nav-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "git",
66
"url": "https://github.com/mitre-attack/attack-navigator.git"
77
},
8-
"version": "5.3.0",
8+
"version": "5.3.1",
99
"license": "Apache-2.0",
1010
"scripts": {
1111
"ng": "ng",

nav-app/src/app/tabs/tabs.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -788,12 +788,12 @@ export class TabsComponent implements AfterViewInit {
788788
let layerVersionStr = viewModel.deserializeDomainVersionID(layerObj);
789789
await self.versionMismatchWarning(layerVersionStr);
790790
self.versionMismatchWarning(layerVersionStr);
791-
if (!self.dataService.getDomain(viewModel.domainVersionID)) {
792-
throw new Error(`Error: '${viewModel.domain}' (v${viewModel.version}) is an invalid domain.`);
793-
}
794-
791+
795792
let isCustom = 'customDataURL' in layerObj;
796793
if (!isCustom) {
794+
if (!self.dataService.getDomain(viewModel.domainVersionID)) {
795+
throw new Error(`Error: '${viewModel.domain}' (v${viewModel.version}) is an invalid domain.`);
796+
}
797797
await self.upgradeLayer(viewModel, layerObj, true);
798798
console.debug(`loaded layer "${viewModel.name}"`);
799799
} else {

0 commit comments

Comments
 (0)