diff --git a/CHANGELOG.md b/CHANGELOG.md index 3edbe6366..fdc7dcd2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,8 +44,12 @@ ### Bugfixes - **Service Release Process** + - Fixed "None" selection issue in Technical Integration [#1161](https://github.com/eclipse-tractusx/portal-frontend/issues/1161) +- **Service Management** + - Service Management | 400 Bad Request when Clicking 'Load More' Button [#1168](https://github.com/eclipse-tractusx/portal-frontend/issues/1168) + ### Bugfixes - **Onboarding Service Provider Management** diff --git a/src/features/adminBoard/serviceAdminBoardApiSlice.ts b/src/features/adminBoard/serviceAdminBoardApiSlice.ts index ccdea1284..f519b7c15 100644 --- a/src/features/adminBoard/serviceAdminBoardApiSlice.ts +++ b/src/features/adminBoard/serviceAdminBoardApiSlice.ts @@ -92,15 +92,13 @@ export const apiSlice = createApi({ endpoints: (builder) => ({ fetchInReviewServices: builder.query({ query: (body) => { - const statusId = `&status=${body.statusId}` - const sortingType = `&sorting=${body.sortingType}` - const expr = `&serviceName=${body.expr}` + const statusId = body.statusId ? `&status=${body.statusId}` : '' + const sortingType = body.sortingType + ? `&sorting=${body.sortingType}` + : '' + const expr = body.expr ? `&serviceName=${body.expr}` : '' return { - url: `/api/services/serviceRelease/inReview?size=${PAGE_SIZE}&page=${ - body.page - }${body.statusId && statusId}${body.sortingType && sortingType}${ - body.expr && expr - }`, + url: `/api/services/serviceRelease/inReview?size=${PAGE_SIZE}&page=${body.page}${statusId}${sortingType}${expr}`, } }, }),