diff --git a/packages/webapp/src/components/maps-page/action-dispatcher/import-dialog/index.tsx b/packages/webapp/src/components/maps-page/action-dispatcher/import-dialog/index.tsx index 493a0078..02dafd17 100644 --- a/packages/webapp/src/components/maps-page/action-dispatcher/import-dialog/index.tsx +++ b/packages/webapp/src/components/maps-page/action-dispatcher/import-dialog/index.tsx @@ -79,7 +79,7 @@ const ImportDialog = ({ onClose }: CreateProps): React.ReactElement => { } } - const extensionFile = file.name.split('.')[1] + const extensionFile = file.name.split('.').pop(); const extensionAccept = ['wxml', 'mm']; if ( extensionAccept.find(ext => ext === extensionFile) ) {