From 14df556e3694e55fb4eef2a2573ebc6e19553192 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 7 Jun 2026 14:40:27 +0200 Subject: [PATCH] close dialog on fail --- interface/src/app/main/DevicesDialog.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interface/src/app/main/DevicesDialog.tsx b/interface/src/app/main/DevicesDialog.tsx index 30fafa6c3..ce0526292 100644 --- a/interface/src/app/main/DevicesDialog.tsx +++ b/interface/src/app/main/DevicesDialog.tsx @@ -83,9 +83,10 @@ const DevicesDialog = ({ } else { await validate(validator, editItem); } - onSave(editItem); } catch (error) { setFieldErrors((error as ValidationError).fieldErrors); + } finally { + onSave(editItem); } };