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
1 changed files with 3 additions and 1 deletions

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",