mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Fix get extencion file
This commit is contained in:
parent
5295c3572a
commit
a4febe347b
@ -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) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user