Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🀍

Bugfix/fix tags in readonly mode of tags selector component (#7461)

Thomas Kaul7635bea1384d
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6ea3a228e7..59123bd50f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed the time in market of the portfolio summary to be empty if there is no activity
- Fixed an issue with the delete button in the activities filter component
+- Fixed the tags in the read-only mode of the tags selector component
## 3.35.0 - 2026-07-27
diff --git a/libs/ui/src/lib/tags-selector/tags-selector.component.html b/libs/ui/src/lib/tags-selector/tags-selector.component.html
index 4f9d82ae98..bd56e93185 100644
--- a/libs/ui/src/lib/tags-selector/tags-selector.component.html
+++ b/libs/ui/src/lib/tags-selector/tags-selector.component.html
@@ -3,22 +3,20 @@
@if (readonly) {
<div class="h5" i18n>Tags</div>
@if (
- (tags && tags.length > 0) || (tagsReadOnly && tagsReadOnly.length > 0)
+ tagsSelected().length > 0 || (tagsReadOnly && tagsReadOnly.length > 0)
) {
<mat-chip-listbox>
@if (tagsReadOnly) {
- @for (tag of tagsReadOnly; track tag) {
+ @for (tag of tagsReadOnly; track tag.id) {
<mat-chip-option disabled>{{ tag.name }}</mat-chip-option>
}
}
- @if (tags) {
- @for (tag of tags; track tag) {
- <mat-chip-option disabled>{{ tag.name }}</mat-chip-option>
- }
+ @for (tag of tagsSelected(); track tag.id) {
+ <mat-chip-option disabled>{{ tag.name }}</mat-chip-option>
}
</mat-chip-listbox>
} @else {
- <div>-</div>
+ <div>–</div>
}
} @else {
<mat-form-field appearance="outline" class="w-100 without-hint">