From 620580a851e9f8dcf1abf6b04dd1701e67c67a03 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Thu, 26 Feb 2026 10:51:11 +0000 Subject: [PATCH] refactor: improve dropdown-breadcrumb and file-uploading-list-row templates for clarity - Updated dropdown-breadcrumb.component.html to track node IDs instead of nodes for better performance. - Refactored file-uploading-list-row.component.html to enhance readability by restructuring conditional rendering and simplifying the template logic. --- .../dropdown-breadcrumb.component.html | 2 +- .../file-uploading-list-row.component.html | 20 +++++++++---------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/lib/content-services/src/lib/breadcrumb/dropdown-breadcrumb.component.html b/lib/content-services/src/lib/breadcrumb/dropdown-breadcrumb.component.html index 3184f88e13..aadfd4bea0 100644 --- a/lib/content-services/src/lib/breadcrumb/dropdown-breadcrumb.component.html +++ b/lib/content-services/src/lib/breadcrumb/dropdown-breadcrumb.component.html @@ -24,7 +24,7 @@ role="button" data-automation-id="dropdown-breadcrumb-path" aria-labelledby="dropdown-breadcrumb-button"> - @for (node of previousNodes; track node) { + @for (node of previousNodes; track node.id) { @if (mimeType === 'default') { - } - - @if (mimeType !== 'default') { + } @else {