fixed code

This commit is contained in:
Hope87
2021-06-29 17:58:15 +03:00
parent 8e607ee21f
commit 800dc0f48c
10 changed files with 106 additions and 77 deletions

View File

@ -17,7 +17,9 @@ const ReportForm = () => {
};
const deleteInput = (id) => {
setInputs((prev) => prev.filter((el) => el !== id));
if (id !== 1) {
setInputs((prev) => prev.filter((el) => el !== id));
}
};
return (