Skip to content

Commit 456e241

Browse files
committed
Fix incorrect delete() name to use del()
1 parent baf1fd0 commit 456e241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: admin/src/pages/IndexView/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const IndexView = ({ history }) => {
9393
refetch();
9494
}, [page, pageSize, refetch]);
9595

96-
const deleteMutation = useMutation((id) => fetchClient.delete(getRequestUrl(id)), {
96+
const deleteMutation = useMutation((id) => fetchClient.del(getRequestUrl(id)), {
9797
async onSuccess() {
9898
await queryClient.invalidateQueries(QUERY_KEY);
9999

0 commit comments

Comments
 (0)