File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/views/Favorites/dialogs Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 323323 D .loading = true ;
324324 const data = [... worldImportTable .value .data ].reverse ();
325325 D .importProgressTotal = data .length ;
326- let ref = ' ' ;
326+ let ref = undefined ;
327327 try {
328328 for (let i = data .length - 1 ; i >= 0 ; i-- ) {
329329 if (! D .loading || ! isVisible .value ) {
333333 if (D .worldImportFavoriteGroup ) {
334334 await addFavoriteWorld (ref, D .worldImportFavoriteGroup , false );
335335 } else if (D .worldImportLocalFavoriteGroup ) {
336- addLocalWorldFavorite (ref, D .worldImportLocalFavoriteGroup );
336+ addLocalWorldFavorite (ref . id , D .worldImportLocalFavoriteGroup );
337337 }
338338 removeFromArray (worldImportTable .value .data , ref);
339339 D .worldIdList .delete (ref .id );
340340 D .importProgress ++ ;
341341 }
342342 } catch (err) {
343- D .errors = ` Name: ${ ref .name } \n WorldId: ${ ref .id } \n ${ err} \n\n ` ;
343+ D .errors = ` Name: ${ ref? .name }\nWorldId: ${ref? .id }\n${err}\n\n` ;
344344 } finally {
345345 D.importProgress = 0;
346346 D.importProgressTotal = 0;
You can’t perform that action at this time.
0 commit comments