Fix redirect after research deletion

This commit is contained in:
faligam
2026-09-06 18:36:49 +02:00
parent 7acf1b9dd5
commit 54d7222eb5

View File

@@ -118,7 +118,7 @@
try { try {
await deleteResearch(apiKey, researchId); await deleteResearch(apiKey, researchId);
errorBanners.addErrorSuccess('Research gelöscht.'); errorBanners.addErrorSuccess('Research gelöscht.');
window.location.href = '/research'; window.location.href = '/research/new';
} catch (e) { } catch (e) {
const msg = e instanceof Error ? e.message : 'Research konnte nicht gelöscht werden.'; const msg = e instanceof Error ? e.message : 'Research konnte nicht gelöscht werden.';
errorBanners.addError(msg, 'error'); errorBanners.addError(msg, 'error');