From 99c65aa1d123f8d800cf3b655f9f9effae0e0d3b Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 7 Sep 2025 19:46:24 +0100 Subject: [PATCH] Keep action in url if modal is open. --- src/components/Dashboard/Management/Hosts/HostInfo.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Dashboard/Management/Hosts/HostInfo.jsx b/src/components/Dashboard/Management/Hosts/HostInfo.jsx index ba1eb61..f52759a 100644 --- a/src/components/Dashboard/Management/Hosts/HostInfo.jsx +++ b/src/components/Dashboard/Management/Hosts/HostInfo.jsx @@ -55,7 +55,7 @@ const HostInfo = () => { }, hostOTP: () => { setHostOTPOpen(true) - return true + return false }, edit: () => { objectFormRef?.current.startEditing() @@ -229,6 +229,7 @@ const HostInfo = () => { destroyOnHidden={true} width={650} onCancel={() => { + actionHandlerRef.current.clearAction() setHostOTPOpen(false) }} footer={false}