1
0
Fork 0
mirror of synced 2024-09-10 06:26:02 +12:00

Using unique naming for options and add validation

This commit is contained in:
Andrew Kingston 2024-05-22 16:24:08 +01:00
parent d63352edd9
commit 949073594a

View file

@ -48,7 +48,9 @@
...navItems,
{
id: generate(),
text: getSequentialName(navItems, "Nav Item ", x => x.text),
text: getSequentialName(navItems, "Nav Item ", {
getName: x => x.text,
}),
url: "",
roleId: Constants.Roles.BASIC,
type: "link",