fix: stop dupes loading on error

This commit is contained in:
William Valentin
2026-02-04 23:46:32 -08:00
parent 13aecf5fe2
commit fdd1c932fd

View File

@@ -210,6 +210,7 @@ export function MediaPanel(props: { selectedDayIso: string | null }) {
void loadAdminLists();
void loadDupes(asset.id).catch((err) => {
setDupesError(err instanceof Error ? err.message : String(err));
setDupes([]);
});
return;
}
@@ -223,6 +224,7 @@ export function MediaPanel(props: { selectedDayIso: string | null }) {
void loadAdminLists();
void loadDupes(asset.id).catch((err) => {
setDupesError(err instanceof Error ? err.message : String(err));
setDupes([]);
});
} catch (err) {
setViewer(null);