mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 04:25:46 +00:00
Merge pull request #626 from akhilmhdh/fix/reload-submit
fix(ui): resolved reloading when form submission
This commit is contained in:
@@ -73,10 +73,15 @@ export const DeleteActionModal = ({
|
|||||||
}
|
}
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
>
|
>
|
||||||
<form>
|
<form
|
||||||
|
onSubmit={(evt) => {
|
||||||
|
evt.preventDefault();
|
||||||
|
if (deleteKey === inputData) onDelete();
|
||||||
|
}}
|
||||||
|
>
|
||||||
<FormControl
|
<FormControl
|
||||||
label={
|
label={
|
||||||
<div className="pb-2 text-sm break-words">
|
<div className="break-words pb-2 text-sm">
|
||||||
Type <span className="font-bold">{deleteKey}</span> to delete the resource
|
Type <span className="font-bold">{deleteKey}</span> to delete the resource
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user