Skip to content

Commit

Permalink
fix: comment images in profile activity page (#6123)
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekshourya29 authored Nov 29, 2024
1 parent 5aeedd1 commit 5926c9e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useEffect } from "react";
import { observer } from "mobx-react";
import Link from "next/link";
import { useParams } from "next/navigation";
import useSWR from "swr";
// icons
import { History, MessageSquare } from "lucide-react";
Expand Down Expand Up @@ -31,8 +30,6 @@ type Props = {

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

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

0 comments on commit 5926c9e

Please sign in to comment.