Skip to content

Commit

Permalink
feat(cr): updates 20240208
Browse files Browse the repository at this point in the history
  • Loading branch information
a-buono committed Feb 8, 2024
1 parent bf1e6c4 commit cae7a3d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ const SectionDetail: React.FC<CardDocumentDetailI> = (props) => {
})
);
}
userId && dispatch(GetItemDetail(id, userId, 'forum'));
userId && dispatch(GetItemDetail(id, userId, 'community'));
}
}
: undefined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ const ManageComment: React.FC<ManageCommentI> = ({
// @ts-ignore
if (res) {
userId &&
dispatch(GetItemDetail(id, userId, payload.entity || 'forum'));
dispatch(GetItemDetail(id, userId, payload.entity || 'community'));
dispatch(
ActionTracker({
target: 'tnd',
action_type: 'COMMENTO',
event_type:
payload.entity === 'board'
? 'NEWS'
: payload.entity === 'forum'
: payload.entity === 'community'
? 'TOPIC'
: 'DOCUMENTI',
category: payload.category_label || payload.category,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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'));
}
};

Expand Down

0 comments on commit cae7a3d

Please sign in to comment.