From b4bb1ee00731e79f003f6a5616e77d4a371f12c9 Mon Sep 17 00:00:00 2001 From: bduran Date: Wed, 6 Nov 2024 12:30:25 -0800 Subject: [PATCH] fix timeline constraint visibility --- src/stores/constraints.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/stores/constraints.ts b/src/stores/constraints.ts index 66a2216e2e..98adce737c 100644 --- a/src/stores/constraints.ts +++ b/src/stores/constraints.ts @@ -234,14 +234,11 @@ export const relevantConstraintRuns: Readable = derived( ); export const visibleConstraintResults: Readable = derived( - [constraintResponses, allowedConstraintPlanSpecMap], - ([$constraintResponses, $allowedConstraintPlanSpecMap]) => { + [constraintResponses, constraintVisibilityMap], + ([$constraintResponses, $constraintVisibilityMap]) => { return $constraintResponses .filter(constraintResponse => { - return ( - $allowedConstraintPlanSpecMap[constraintResponse.constraintId][constraintResponse.constraintInvocationId] != - null - ); + return $constraintVisibilityMap[constraintResponse.constraintId]?.[constraintResponse.constraintInvocationId]; }) .map(constraintResponse => { return {