- need to find better way to fetch file urls to use for sound
This commit is contained in:
@@ -9,7 +9,9 @@ import { useFileUpload } from "../../../hooks/useFileUpload";
|
||||
const SoundUpload = () => {
|
||||
const { state, dispatch } = useSoundContext();
|
||||
const { mutation } = useCameraBlackboard();
|
||||
const { mutation: fileMutation } = useFileUpload();
|
||||
const { mutation: fileMutation } = useFileUpload({
|
||||
queryKey: state.sightingSound ? [state.sightingSound] : undefined,
|
||||
});
|
||||
|
||||
const initialValues: SoundUploadValue = {
|
||||
name: "",
|
||||
|
||||
Reference in New Issue
Block a user