Fix redirect after research deletion
This commit is contained in:
@@ -118,7 +118,7 @@
|
||||
try {
|
||||
await deleteResearch(apiKey, researchId);
|
||||
errorBanners.addErrorSuccess('Research gelöscht.');
|
||||
window.location.href = '/research';
|
||||
window.location.href = '/research/new';
|
||||
} catch (e) {
|
||||
const msg = e instanceof Error ? e.message : 'Research konnte nicht gelöscht werden.';
|
||||
errorBanners.addError(msg, 'error');
|
||||
|
||||
Reference in New Issue
Block a user