- need to find better way to fetch file urls to use for sound

This commit is contained in:
2025-10-22 16:12:49 +01:00
parent 4519700561
commit 0c6e4b57be
3 changed files with 43 additions and 10 deletions

View File

@@ -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: "",