From cae7a3d33ab09661bb4caf408d9070bebd8c381f Mon Sep 17 00:00:00 2001 From: Arturo Buono Date: Thu, 8 Feb 2024 16:28:49 +0100 Subject: [PATCH] feat(cr): updates 20240208 --- .../src/components/DocumentDetail/sectionDetail.tsx | 2 +- .../AdministrativeArea/Entities/modals/manageComment.tsx | 4 ++-- .../src/pages/common/Community/communityDetails.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fe-piattaforma/src/components/DocumentDetail/sectionDetail.tsx b/fe-piattaforma/src/components/DocumentDetail/sectionDetail.tsx index 51610ca3b..71cb88876 100644 --- a/fe-piattaforma/src/components/DocumentDetail/sectionDetail.tsx +++ b/fe-piattaforma/src/components/DocumentDetail/sectionDetail.tsx @@ -422,7 +422,7 @@ const SectionDetail: React.FC = (props) => { }) ); } - userId && dispatch(GetItemDetail(id, userId, 'forum')); + userId && dispatch(GetItemDetail(id, userId, 'community')); } } : undefined diff --git a/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/modals/manageComment.tsx b/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/modals/manageComment.tsx index 3e89bafa1..66342c950 100644 --- a/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/modals/manageComment.tsx +++ b/fe-piattaforma/src/pages/administrator/AdministrativeArea/Entities/modals/manageComment.tsx @@ -60,7 +60,7 @@ const ManageComment: React.FC = ({ // @ts-ignore if (res) { userId && - dispatch(GetItemDetail(id, userId, payload.entity || 'forum')); + dispatch(GetItemDetail(id, userId, payload.entity || 'community')); dispatch( ActionTracker({ target: 'tnd', @@ -68,7 +68,7 @@ const ManageComment: React.FC = ({ event_type: payload.entity === 'board' ? 'NEWS' - : payload.entity === 'forum' + : payload.entity === 'community' ? 'TOPIC' : 'DOCUMENTI', category: payload.category_label || payload.category, diff --git a/fe-piattaforma/src/pages/common/Community/communityDetails.tsx b/fe-piattaforma/src/pages/common/Community/communityDetails.tsx index d3f0eb9db..dd893ab51 100644 --- a/fe-piattaforma/src/pages/common/Community/communityDetails.tsx +++ b/fe-piattaforma/src/pages/common/Community/communityDetails.tsx @@ -41,7 +41,7 @@ const CommunityDetails = () => { const getItemDetails = async () => { if (id && userId) { - const res = await dispatch(GetItemDetail(id, userId, 'forum')); + const res = await dispatch(GetItemDetail(id, userId, 'community')); // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore if (res) { @@ -104,7 +104,7 @@ const CommunityDetails = () => { await dispatch(DeleteComment(commentId, reason)); if (id && userId) { dispatch(GetCommentsList(id, userId)); - dispatch(GetItemDetail(id, userId, 'forum')); + dispatch(GetItemDetail(id, userId, 'community')); } };