Skip to content

Commit

Permalink
fixed filtering of loss scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakae committed Jun 21, 2024
1 parent a8e2bcf commit 8a9096c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/src-language-server/stpa/diagram/filtering.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ export function filterModel(model: Model, options: StpaSynthesisOptions): Custom
? []
: model.scenarios?.filter((scenario) => {
if (
(!scenario.uca && !options.getShowScenariosWithHazard()) ||
(scenario.uca && !options.getShowUCAs() &&
(!scenario.uca && options.getShowScenariosWithHazard()) ||
(scenario.uca && options.getShowUCAs() &&
(scenario.uca?.ref?.$container.system.ref?.name +
"." +
scenario.uca?.ref?.$container.action.ref?.name ===
Expand Down

0 comments on commit 8a9096c

Please sign in to comment.