diff --git a/client/src/pages/learningPath/learningPathPage/LearningPathPathView.vue b/client/src/pages/learningPath/learningPathPage/LearningPathPathView.vue index 7aad40c6..4fe83e74 100644 --- a/client/src/pages/learningPath/learningPathPage/LearningPathPathView.vue +++ b/client/src/pages/learningPath/learningPathPage/LearningPathPathView.vue @@ -41,10 +41,12 @@ const scrollLearnPathDiagram = (offset: number) => { const filterCircles = (topic: TopicType) => { // return []; - if (props.filter) { - return topic.circles.filter((circle) => circle.profiles.indexOf(props.filter) > -1); + if (props.filter === undefined) { + return topic.circles; } - return topic.circles; + return topic.circles.filter( + (circle) => circle.profiles.indexOf(props.filter as string) > -1 + ); };