mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-12 22:11:54 +00:00
forms pt3
This commit is contained in:
@@ -4,7 +4,6 @@ import {useParams} from "react-router";
|
||||
import {useMutation, useQuery, useQueryClient} from "@tanstack/react-query";
|
||||
import {InventoryItem} from "./types.ts";
|
||||
import {useEffect} from "react";
|
||||
import {put} from "axios";
|
||||
|
||||
type EditableInventoryItem = Omit<InventoryItem, 'id'>;
|
||||
|
||||
@@ -27,9 +26,6 @@ function EditItem() {
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
const { isPending, error, data, isFetching } = useQuery({
|
||||
queryKey: ['inventory', params.itemId],
|
||||
queryFn: async (): Promise<InventoryItem> => {
|
||||
|
||||
Reference in New Issue
Block a user