mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-21 22:27:56 +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