Skip to content

Commit 5926c9e

Browse files
fix: comment images in profile activity page (#6123)
1 parent 5aeedd1 commit 5926c9e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

web/core/components/profile/activity/profile-activity-list.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useEffect } from "react";
22
import { observer } from "mobx-react";
33
import Link from "next/link";
4-
import { useParams } from "next/navigation";
54
import useSWR from "swr";
65
// icons
76
import { History, MessageSquare } from "lucide-react";
@@ -31,8 +30,6 @@ type Props = {
3130

3231
export const ProfileActivityListPage: React.FC<Props> = observer((props) => {
3332
const { cursor, perPage, updateResultsCount, updateTotalPages, updateEmptyState } = props;
34-
// params
35-
const { workspaceSlug } = useParams();
3633
// store hooks
3734
const { data: currentUser } = useUser();
3835

@@ -106,7 +103,7 @@ export const ProfileActivityListPage: React.FC<Props> = observer((props) => {
106103
activityItem?.new_value !== "" ? activityItem.new_value : activityItem.old_value
107104
}
108105
containerClassName="text-xs bg-custom-background-100"
109-
workspaceSlug={workspaceSlug?.toString() ?? ""}
106+
workspaceSlug={activityItem?.workspace_detail?.slug.toString() ?? ""}
110107
projectId={activityItem.project ?? ""}
111108
/>
112109
</div>

0 commit comments

Comments
 (0)