fix uncaught errors

This commit is contained in:
pa
2025-07-15 08:16:58 +09:00
committed by Natsumi
parent 64cc1455ea
commit 4b7ebfc1eb
4 changed files with 44 additions and 27 deletions
+3 -2
View File
@@ -562,9 +562,10 @@ export const useGalleryStore = defineStore('Gallery', () => {
method: 'HEAD',
redirect: 'follow'
}).catch((error) => {
console.log(error);
console.error('Failed to check image availability:', error);
return null;
});
if (response.status === 200) {
if (response && response.status === 200) {
state.previousImagesTable.push(image);
}
}
+3
View File
@@ -247,6 +247,9 @@ export const useModerationStore = defineStore('Moderation', () => {
}
}
deleteExpiredPlayerModerations();
})
.catch((error) => {
console.error('Failed to load player/avatar moderations:', error);
});
}