mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-29 05:02:52 +08:00
[offers][fix] change id to profileid
This commit is contained in:
@ -136,7 +136,7 @@ export default function OfferProfile() {
|
|||||||
function handleDelete() {
|
function handleDelete() {
|
||||||
if (isEditable) {
|
if (isEditable) {
|
||||||
deleteMutation.mutate({
|
deleteMutation.mutate({
|
||||||
id: offerProfileId as string,
|
profileId: offerProfileId as string,
|
||||||
token: 'CHANGE THIS PART TO URL PARAM @ ZIQING', // TODO: token: token as string,
|
token: 'CHANGE THIS PART TO URL PARAM @ ZIQING', // TODO: token: token as string,
|
||||||
});
|
});
|
||||||
trpcContext.invalidateQueries(['offers.profile.listOne']);
|
trpcContext.invalidateQueries(['offers.profile.listOne']);
|
||||||
|
@ -17,7 +17,7 @@ function Test() {
|
|||||||
const deleteMutation = trpc.useMutation(['offers.profile.delete']);
|
const deleteMutation = trpc.useMutation(['offers.profile.delete']);
|
||||||
|
|
||||||
const handleDelete = (id: string) => {
|
const handleDelete = (id: string) => {
|
||||||
deleteMutation.mutate({ id, token: ' dadaadad' });
|
deleteMutation.mutate({ profileId: id, token: ' dadaadad' });
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Reference in New Issue
Block a user