From 2188464220e75b80f55ddc5e24431fe482c6cb8b Mon Sep 17 00:00:00 2001 From: LN Date: Tue, 28 Nov 2023 02:12:22 +0100 Subject: [PATCH] Reinforce security when deleting a form --- components/form/settings.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/form/settings.tsx b/components/form/settings.tsx index 7f34ac5..fcd47d7 100644 --- a/components/form/settings.tsx +++ b/components/form/settings.tsx @@ -466,13 +466,20 @@ export default function SettingsForms({ dataForm }: { dataForm: any }) { onChange={(e) => { setConfirmFormName(e.target.value) }} + value={confirmFormName} className="" /> - Cancel + { + setConfirmFormName("") + }} + > + Cancel +