🧹🚧DOC-97 DOC-19

This commit is contained in:
Timur Ercan
2023-02-21 11:19:31 +01:00
parent f3e083e991
commit 2176511ef7
7 changed files with 16 additions and 22 deletions

View File

@@ -37,7 +37,6 @@ export default function PDFEditor(props: any) {
function onDeleteHandler(id: any) {
const field = fields.find((e) => e.id == id);
const fieldIndex = fields.map((item) => item.id).indexOf(id);
console.log(fieldIndex);
if (fieldIndex > -1) {
const fieldWithoutRemoved = [...fields];
const removedField = fieldWithoutRemoved.splice(fieldIndex, 1);