diff --git a/client/src/components/buttons/Download.tsx b/client/src/components/buttons/Download.tsx index 791e6c44..2d347190 100644 --- a/client/src/components/buttons/Download.tsx +++ b/client/src/components/buttons/Download.tsx @@ -3,8 +3,10 @@ import Button, { type ButtonProps } from '@mui/material/Button' export default function DownloadBtn({ data, + name, ...props -}: ButtonProps & { data: object | string }) { +}: ButtonProps & { data: object | string; name?: string }) { + const safeName = name || 'geojson.json' return (