mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Fix import local world favorites
This commit is contained in:
@@ -323,7 +323,7 @@
|
|||||||
D.loading = true;
|
D.loading = true;
|
||||||
const data = [...worldImportTable.value.data].reverse();
|
const data = [...worldImportTable.value.data].reverse();
|
||||||
D.importProgressTotal = data.length;
|
D.importProgressTotal = data.length;
|
||||||
let ref = '';
|
let ref = undefined;
|
||||||
try {
|
try {
|
||||||
for (let i = data.length - 1; i >= 0; i--) {
|
for (let i = data.length - 1; i >= 0; i--) {
|
||||||
if (!D.loading || !isVisible.value) {
|
if (!D.loading || !isVisible.value) {
|
||||||
@@ -333,14 +333,14 @@
|
|||||||
if (D.worldImportFavoriteGroup) {
|
if (D.worldImportFavoriteGroup) {
|
||||||
await addFavoriteWorld(ref, D.worldImportFavoriteGroup, false);
|
await addFavoriteWorld(ref, D.worldImportFavoriteGroup, false);
|
||||||
} else if (D.worldImportLocalFavoriteGroup) {
|
} else if (D.worldImportLocalFavoriteGroup) {
|
||||||
addLocalWorldFavorite(ref, D.worldImportLocalFavoriteGroup);
|
addLocalWorldFavorite(ref.id, D.worldImportLocalFavoriteGroup);
|
||||||
}
|
}
|
||||||
removeFromArray(worldImportTable.value.data, ref);
|
removeFromArray(worldImportTable.value.data, ref);
|
||||||
D.worldIdList.delete(ref.id);
|
D.worldIdList.delete(ref.id);
|
||||||
D.importProgress++;
|
D.importProgress++;
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
D.errors = `Name: ${ref.name}\nWorldId: ${ref.id}\n${err}\n\n`;
|
D.errors = `Name: ${ref?.name}\nWorldId: ${ref?.id}\n${err}\n\n`;
|
||||||
} finally {
|
} finally {
|
||||||
D.importProgress = 0;
|
D.importProgress = 0;
|
||||||
D.importProgressTotal = 0;
|
D.importProgressTotal = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user