Skip to content

Commit

Permalink
fix timeline constraint visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
duranb committed Nov 6, 2024
1 parent 26d639c commit b4bb1ee
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/stores/constraints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,11 @@ export const relevantConstraintRuns: Readable<ConstraintRun[]> = derived(
);

export const visibleConstraintResults: Readable<ConstraintResultWithName[]> = 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 {
Expand Down

0 comments on commit b4bb1ee

Please sign in to comment.