Using unique naming for options and add validation
This commit is contained in:
parent
d63352edd9
commit
949073594a
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue