diff --git a/src/components/Map/components/FileDragNDrop.tsx b/src/components/Map/components/FileDragNDrop.tsx index af1681821..25c66da69 100644 --- a/src/components/Map/components/FileDragNDrop.tsx +++ b/src/components/Map/components/FileDragNDrop.tsx @@ -27,7 +27,7 @@ const FileDragNDrop = () => { const file = event.dataTransfer?.files[0]; setDragging(false); - if (file && (file.type === 'application/geo+json' || file.type === 'application/json')) { + if (file && file.name.endsWith('json')) { const reader = new FileReader(); reader.onload = async (e) => { try {