Fixed story for person show page (#746)

* Fixed story for person show page

* Remove console.logs

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Lucas Bordeau
2023-07-19 08:51:54 +02:00
committed by GitHub
parent 7ecb098c55
commit 8a23a65c17
4 changed files with 33 additions and 5 deletions

View File

@ -1,4 +1,4 @@
import { useParams } from 'react-router-dom';
import { useLocation, useParams } from 'react-router-dom';
import { useTheme } from '@emotion/react';
import { Timeline } from '@/activities/timeline/components/Timeline';
@ -14,6 +14,8 @@ import { CommentableType } from '~/generated/graphql';
export function PersonShow() {
const personId = useParams().personId ?? '';
const location = useLocation();
const { data } = usePersonQuery(personId);
const person = data?.findUniquePerson;