From 2e60493c2a8e9998e55b6184ef294174eb6e7a9f Mon Sep 17 00:00:00 2001 From: Manojava Koushik <111366021+manojava-gk@users.noreply.github.com> Date: Mon, 30 Sep 2024 21:29:55 +0530 Subject: [PATCH] fix(tech user): show proper error message on tech user deletion (#1164) https://github.com/eclipse-tractusx/portal-frontend/issues/1034 --- CHANGELOG.md | 2 ++ DEPENDENCIES | 6 +++--- src/features/admin/serviceApiSlice.ts | 6 ------ 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c9c53845..e25723cff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ - fixed overlay enabling on click of managed connectors(details) [#1142](https://github.com/eclipse-tractusx/portal-frontend/pull/1142) - **Connector Management** - fixed customer link selection and fixed resetting values [#1119](https://github.com/eclipse-tractusx/portal-frontend/pull/1119) +- **Technical User Management** + - fixed error message scenario post technical user deletion action ## 2.2.0-alpha.1 diff --git a/DEPENDENCIES b/DEPENDENCIES index 9bdc4eff1..ee294e91b 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -609,16 +609,16 @@ npm/npmjs/@emotion/babel-plugin/11.11.0, MIT, approved, #8386 npm/npmjs/@emotion/cache/11.11.0, MIT, approved, #8401 npm/npmjs/@emotion/hash/0.9.1, MIT, approved, #8394 npm/npmjs/@emotion/hash/0.9.2, MIT, approved, #8394 -npm/npmjs/@emotion/is-prop-valid/1.3.0, MIT, approved, clearlydefined +npm/npmjs/@emotion/is-prop-valid/1.3.0, MIT AND (BSD-2-Clause AND MIT), approved, #16339 npm/npmjs/@emotion/memoize/0.8.1, MIT, approved, #8408 npm/npmjs/@emotion/memoize/0.9.0, MIT, approved, clearlydefined npm/npmjs/@emotion/react/11.11.4, MIT AND (BSD-3-Clause AND MIT), approved, #8931 -npm/npmjs/@emotion/serialize/1.3.0, MIT, approved, clearlydefined +npm/npmjs/@emotion/serialize/1.3.0, MIT AND (BSD-2-Clause AND MIT), approved, #16340 npm/npmjs/@emotion/sheet/1.2.2, MIT, approved, #8389 npm/npmjs/@emotion/styled/11.11.5, MIT, approved, clearlydefined npm/npmjs/@emotion/unitless/0.9.0, MIT, approved, clearlydefined npm/npmjs/@emotion/use-insertion-effect-with-fallbacks/1.0.1, MIT, approved, #8419 -npm/npmjs/@emotion/utils/1.4.0, MIT, approved, clearlydefined +npm/npmjs/@emotion/utils/1.4.0, MIT AND (BSD-2-Clause AND MIT), approved, #16344 npm/npmjs/@emotion/weak-memoize/0.3.1, MIT, approved, #8402 npm/npmjs/@esbuild/aix-ppc64/0.20.2, MIT, approved, clearlydefined npm/npmjs/@esbuild/android-arm/0.20.2, Apache-2.0 AND MIT AND BSD-3-Clause AND (BSD-2-Clause AND BSD-3-Clause), approved, #15302 diff --git a/src/features/admin/serviceApiSlice.ts b/src/features/admin/serviceApiSlice.ts index 4ef8b642d..56b11ef62 100644 --- a/src/features/admin/serviceApiSlice.ts +++ b/src/features/admin/serviceApiSlice.ts @@ -130,12 +130,6 @@ export const apiSlice = createApi({ url: `/api/administration/serviceaccount/owncompany/serviceaccounts/${id}`, method: 'DELETE', }), - // Add an ESLint exception until there is a solution - // eslint-disable-next-line - transformErrorResponse: (error: any) => - error?.errors?.[ - 'Org.Eclipse.TractusX.Portal.Backend.Administration.Service' - ]?.[0] ?? i18next.t('error.deleteTechUserNotificationErrorDescription'), }), fetchServiceAccountList: builder.query< PaginResult,