From 8a9096c9df8bfe52721dac1c50c5f9f7fc4d2483 Mon Sep 17 00:00:00 2001 From: Jette Petzold Date: Fri, 21 Jun 2024 16:09:55 +0200 Subject: [PATCH] fixed filtering of loss scenarios --- extension/src-language-server/stpa/diagram/filtering.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/src-language-server/stpa/diagram/filtering.ts b/extension/src-language-server/stpa/diagram/filtering.ts index 9296483..7fd626c 100644 --- a/extension/src-language-server/stpa/diagram/filtering.ts +++ b/extension/src-language-server/stpa/diagram/filtering.ts @@ -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 ===