feat: add error handling to search functions

This commit is contained in:
2026-06-16 14:00:41 +02:00
committed by Milas Holsting
parent 2a8294c405
commit 2ec1cdec38
3 changed files with 8 additions and 4 deletions

View File

@@ -140,8 +140,9 @@ export const removeContinueWatchingItem = (item: CommandPaletteItem): void => {
removeContinueWatchingCard(animeID);
renderItems(getResultItems().filter((candidate) => candidate.id !== item.id));
})
.catch(() => {
.catch((error) => {
window.showToast?.({ message: "Failed to remove from Continue Watching." });
console.error("failed to remove from continue watching:", error);
});
};