refactor: update category tracking in categories management component

- Changed the tracking mechanism in the categories loop from category to category.id for improved performance and accuracy.
This commit is contained in:
Denys Vuika
2026-02-27 13:05:51 +00:00
parent 5767203cce
commit 478482b3b6
@@ -20,7 +20,7 @@
}
@if (categories && categories.length > 0) {
<div class="adf-categories-list" [class.adf-categories-list-fixed]="!categoryNameControlVisible">
@for (category of categories; track category) {
@for (category of categories; track category.id) {
<span
[class.adf-categories-padded]="!isCRUDMode"
class="adf-assigned-categories">