Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(ui): invalidation of traces after delete

Marc Klingen0f5d5cd9a046
diff --git a/src/components/delete-trace.tsx b/src/components/delete-trace.tsx
index c200e9a157..642044546e 100644
--- a/src/components/delete-trace.tsx
+++ b/src/components/delete-trace.tsx
@@ -30,11 +30,10 @@ export function DeleteTrace({
const mutDeleteTraces = api.traces.deleteMany.useMutation({
onSuccess: () => {
setIsDeleted(true);
- void utils.traces.invalidate().then(() => {
- if (!isTableAction) {
- void router.push(`/project/${projectId}/traces`);
- }
- });
+ void utils.traces.invalidate();
+ if (!isTableAction) {
+ void router.push(`/project/${projectId}/traces`);
+ }
},
});