Skip to content

Commit

Permalink
622 select by data source (#623)
Browse files Browse the repository at this point in the history
* bug fix

* update changelog

* bump version

* add release date
  • Loading branch information
clemiller authored Feb 29, 2024
1 parent cd997c2 commit 0c8f70a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
The creation of the tag can be disabled with the --no-git-tag-version if desired.
-->

# 4.9.4 - 29 February 2024

## Fixes
- Fixed a bug with selecting techniques by data sources in the search & multi-select interface. See issue [#622](https://github.com/mitre-attack/attack-navigator/issues/622).

# 4.9.3 - 27 February 2024

## Fixes
Expand Down
4 changes: 2 additions & 2 deletions nav-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion nav-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "git",
"url": "https://github.com/mitre-attack/attack-navigator.git"
},
"version": "4.9.3",
"version": "4.9.4",
"license": "Apache-2.0",
"scripts": {
"ng": "ng",
Expand Down
4 changes: 2 additions & 2 deletions nav-app/src/app/classes/stix/data-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class DataComponent extends StixObject {
/**
* Get techniques related to the data component
* @param domainVersionID the ID of the domain and version
* @returns {string[]} technique IDs used by the data component
* @returns {Technique[]} list of techniques used by the data component
*/
public techniques(domainVersionID): string[] {
const techniques = [];
Expand All @@ -23,7 +23,7 @@ export class DataComponent extends StixObject {
if (relationships.has(this.id)) {
relationships.get(this.id).forEach((targetID) => {
const technique = domain.techniques.find((t) => t.id === targetID);
if (technique) techniques.push(technique.id);
if (technique) techniques.push(technique);
});
}
return techniques;
Expand Down

0 comments on commit 0c8f70a

Please sign in to comment.