From 644d907b455235731661595678ff1e1886b80254 Mon Sep 17 00:00:00 2001 From: Thatsaphorn Atchariyaphap Date: Fri, 11 Jul 2025 19:33:27 +0200 Subject: [PATCH] Reset state on dialog close in `ErrorDialog` component --- internal_frontend/components/error-boundary.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal_frontend/components/error-boundary.tsx b/internal_frontend/components/error-boundary.tsx index 931aac5..e8d4219 100644 --- a/internal_frontend/components/error-boundary.tsx +++ b/internal_frontend/components/error-boundary.tsx @@ -92,7 +92,10 @@ interface ErrorDialogProps { function ErrorDialog({error, onReset, open}: ErrorDialogProps) { return ( - { + { + if (!isOpen) { + onReset(); + } }}>