Skip to content

Commit

Permalink
commnt rmovd
Browse files Browse the repository at this point in the history
  • Loading branch information
mluena committed May 23, 2024
1 parent 06edc9f commit 249be9b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/containers/datasets/drawing-tool/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ const WidgetDrawingTool = () => {
const setAnalysisState = useSetRecoilState(analysisAtom);
const setMapCursor = useSetRecoilState(mapCursorAtom);

const { acceptedFiles, ...rest } = useDropzone({
const { acceptedFiles } = useDropzone({
multiple: false,
accept: {
'multipart/form-data': ['.zip', '.gpkg', '.geojson', '.json'],
},
});

console.log(acceptedFiles, 'acceptedFiles');

const onUploadFile = useCallback<Parameters<typeof useUploadFile>[1]>(
(geojson) => {
setDrawingToolState((drawingToolState) => ({
Expand Down

0 comments on commit 249be9b

Please sign in to comment.