Using unique naming for options and add validation
This commit is contained in:
parent
d63352edd9
commit
949073594a
|
@ -48,7 +48,9 @@
|
||||||
...navItems,
|
...navItems,
|
||||||
{
|
{
|
||||||
id: generate(),
|
id: generate(),
|
||||||
text: getSequentialName(navItems, "Nav Item ", x => x.text),
|
text: getSequentialName(navItems, "Nav Item ", {
|
||||||
|
getName: x => x.text,
|
||||||
|
}),
|
||||||
url: "",
|
url: "",
|
||||||
roleId: Constants.Roles.BASIC,
|
roleId: Constants.Roles.BASIC,
|
||||||
type: "link",
|
type: "link",
|
||||||
|
|
Loading…
Reference in New Issue