File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
backend/tests/integration/test_routes
frontend/src/routes/debug Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1- from pathlib import Path
21import pytest
32
43
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ function DropZone({ children }: { children?: React.ReactNode }) {
2828 setIsOverWindow ( false ) ;
2929 } , [ ] ) ;
3030
31- const { mutate, status , isPending } = useMutation ( fileUploadMutationOptions ) ;
31+ const { mutate } = useMutation ( fileUploadMutationOptions ) ;
3232
3333 useEffect ( ( ) => {
3434 if ( ! ref . current ) return ;
@@ -49,7 +49,11 @@ function DropZone({ children }: { children?: React.ReactNode }) {
4949 const files = event . dataTransfer ?. files ;
5050 if ( files && files . length > 0 ) {
5151 console . log ( "Dropped files:" , files ) ;
52- mutate ( { file : files [ 0 ] , targetDir : "/music/upload/" } ) ; // Upload the first file only
52+ mutate ( {
53+ files : files ,
54+ targetDir : "/music/upload/" ,
55+ setProgress : ( ) => { } ,
56+ } ) ; // Upload all files
5357 }
5458 } ;
5559
You can’t perform that action at this time.
0 commit comments