diff --git a/src/app/components/route-list/route-list.html b/src/app/components/route-list/route-list.html index 192215e..a8b9105 100644 --- a/src/app/components/route-list/route-list.html +++ b/src/app/components/route-list/route-list.html @@ -17,7 +17,7 @@ (cdkDropListDropped)="drop($event)" [cdkDropListData]="routes()" > - @for (route of routes(); track $index + (route.input || ''); let i = $index) { + @for (route of routes(); track route.id; let i = $index) {
- @for (processor of processors(); track $index + processor.type; let i = $index) { + @for (processor of processors(); track processor.id; let i = $index) {
- @for (processor of processors(); track $index + processor.type; let i = $index) { + @for (processor of processors(); track processor.id; let i = $index) {
; }; diff --git a/src/app/services/schema.ts b/src/app/services/schema.ts index 2527677..5a36203 100644 --- a/src/app/services/schema.ts +++ b/src/app/services/schema.ts @@ -139,12 +139,16 @@ export class SchemaService { } getSkeletonForRoute(): RouteConfig { - const template: RouteConfig = {}; + const template: RouteConfig = { + id: crypto.randomUUID(), + processors: [], + }; return template; } getSkeletonForProcessor(processorType: string): ProcessorConfig { const template: ProcessorConfig = { + id: crypto.randomUUID(), type: processorType, }; const itemInfo = this.processorTypes.find((itemInfo) => itemInfo.type === processorType);