Fix context menu and favorites (#2564)
This commit is contained in:
@ -31,7 +31,9 @@ import { companyShowFieldDefinitions } from './constants/companyShowFieldDefinit
|
||||
|
||||
export const CompanyShow = () => {
|
||||
const companyId = useParams().companyId ?? '';
|
||||
const { createFavorite, deleteFavorite } = useFavorites();
|
||||
const { createFavorite, deleteFavorite } = useFavorites({
|
||||
objectNamePlural: 'companies',
|
||||
});
|
||||
const navigate = useNavigate();
|
||||
const { data, loading } = useCompanyQuery(companyId);
|
||||
const company = data?.findUniqueCompany;
|
||||
|
||||
@ -34,7 +34,9 @@ import { personShowFieldDefinition } from './constants/personShowFieldDefinition
|
||||
|
||||
export const PersonShow = () => {
|
||||
const personId = useParams().personId ?? '';
|
||||
const { createFavorite, deleteFavorite } = useFavorites();
|
||||
const { createFavorite, deleteFavorite } = useFavorites({
|
||||
objectNamePlural: 'peopleV2',
|
||||
});
|
||||
const navigate = useNavigate();
|
||||
|
||||
const { data, loading } = usePersonQuery(personId);
|
||||
|
||||
Reference in New Issue
Block a user