Join instead of split on Array

This commit is contained in:
Igor Zinken
2021-01-19 19:02:37 +01:00
parent 3a68113f0c
commit 52bb7cd5d4

View File

@@ -162,7 +162,7 @@ export default {
actions: {
async loadDocument({ commit }, file = null ) {
if ( !file ) {
const fileList = await selectFile( `${PROJECT_FILE_EXTENSION},${ACCEPTED_FILE_TYPES.split( "," )}`, false );
const fileList = await selectFile( `${PROJECT_FILE_EXTENSION},${ACCEPTED_FILE_TYPES.join( "," )}`, false );
if ( !fileList?.length ) {
return;
}