From 1292e0e4dffba3101e5a50a9caf850e3d95eee64 Mon Sep 17 00:00:00 2001 From: Omri Levy <61207713+Omri-Levy@users.noreply.github.com> Date: Wed, 8 Nov 2023 19:17:56 +0200 Subject: [PATCH] refactor(backoffice-v2): removed nesting level of data property (#1596) --- apps/backoffice-v2/src/pages/Entity/hooks/useTasks/useTasks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backoffice-v2/src/pages/Entity/hooks/useTasks/useTasks.tsx b/apps/backoffice-v2/src/pages/Entity/hooks/useTasks/useTasks.tsx index 7ee6f2b7db..d4203e86ff 100644 --- a/apps/backoffice-v2/src/pages/Entity/hooks/useTasks/useTasks.tsx +++ b/apps/backoffice-v2/src/pages/Entity/hooks/useTasks/useTasks.tsx @@ -482,7 +482,7 @@ export const useTasks = ({ alternativeNames: sanction?.entity?.otherNames, places: sanction?.entity?.places, })); - const ubos = pluginsOutput?.ubo?.data?.data?.uboGraph?.map(ubo => ({ + const ubos = pluginsOutput?.ubo?.data?.uboGraph?.map(ubo => ({ name: ubo?.name, percentage: ubo?.shareHolders?.[0]?.sharePercentage, type: ubo?.type,