From 949073594a1cb8667472bfbdc51fcbadfb1367a4 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 22 May 2024 16:24:08 +0100 Subject: [PATCH] Using unique naming for options and add validation --- .../_components/Navigation/NavItemConfiguration.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/NavItemConfiguration.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/NavItemConfiguration.svelte index dffa4bf3ff..db55f501f0 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/NavItemConfiguration.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Navigation/NavItemConfiguration.svelte @@ -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",