Skip to content
Snippets Groups Projects
Commit fa3725a1 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FEAT #15298 TIME 0:04 find the integer in the label with the function slice

parent 2aa7bc7a
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ export class CustomFieldsAdministrationComponent implements OnInit {
}
const label = element.label;
if (label.includes(this.translate.instant('lang.newField'))) {
this.idTable.push(label.slice(13));
this.idTable.push(label.slice(label.length - 1));
this.incrementCreation = Math.max( ... this.idTable) + 1;
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment