mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47: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'];
|
const extensionAccept = ['wxml', 'mm'];
|
||||||
|
|
||||||
if ( extensionAccept.find(ext => ext === extensionFile) ) {
|
if ( extensionAccept.find(ext => ext === extensionFile) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user