From 17db571244cea68c49cb1c420e7ca147d9d8488d Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Thu, 27 Feb 2025 16:19:21 +0100 Subject: [PATCH] Add changie and linter fixes --- .changes/unreleased/Fixed-20250227-161754.yaml | 6 ++++++ .../vuejs/Activity/components/SocialIssuesAcc.vue | 5 ++--- .../public/vuejs/AccompanyingCourse/api.js | 2 +- .../AccompanyingCourse/components/SocialIssue.vue | 10 ++++++---- .../vuejs/AccompanyingCourseWorkCreate/store.js | 14 +++++++------- 5 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 .changes/unreleased/Fixed-20250227-161754.yaml diff --git a/.changes/unreleased/Fixed-20250227-161754.yaml b/.changes/unreleased/Fixed-20250227-161754.yaml new file mode 100644 index 000000000..2995203d2 --- /dev/null +++ b/.changes/unreleased/Fixed-20250227-161754.yaml @@ -0,0 +1,6 @@ +kind: Fixed +body: Use fetchResults method to fetch all social issues instead of only the first page +time: 2025-02-27T16:17:54.678560051+01:00 +custom: + Issue: "" + SchemaChange: No schema change diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue index 1986b5bbb..b25bd8731 100644 --- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue +++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue @@ -160,9 +160,8 @@ export default { /* Add in list the issues already associated (if not yet listed) */ this.socialIssuesSelected.forEach((issue) => { if ( - this.socialIssuesList.filter( - (i) => i.id === issue.id - ).length !== 1 + this.socialIssuesList.filter((i) => i.id === issue.id) + .length !== 1 ) { this.$store.commit("addIssueInList", issue); } diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/api.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/api.js index a3d36eac0..3ae5405a3 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/api.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/api.js @@ -1,4 +1,4 @@ -import {fetchResults} from "ChillMainAssets/lib/api/apiMethods.ts"; +import { fetchResults } from "ChillMainAssets/lib/api/apiMethods.ts"; /* * Endpoint v.2 chill_api_single_accompanying_course__entity diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/SocialIssue.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/SocialIssue.vue index ffc08bc0a..21c290f48 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/SocialIssue.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/SocialIssue.vue @@ -29,7 +29,7 @@