Fix: correct card display custom field trackby variable

This commit is contained in:
shamoon 2024-07-09 13:06:06 -07:00
parent a63f8809fa
commit ff4203938b
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@
<ngb-progressbar [type]="searchScoreClass" [value]="document.__search_hit__.score" class="search-score-bar mx-2 mt-1" [max]="1"></ngb-progressbar>
</div>
}
@for (field of document.custom_fields; track field.id) {
@for (field of document.custom_fields; track field.field) {
@if (displayFields.includes(DisplayField.CUSTOM_FIELD + field.field)) {
<div class="list-group-item bg-light text-dark p-1 border-0 d-flex align-items-center">
<i-bs width=".9em" height=".9em" class="me-2 text-muted" name="ui-radios"></i-bs>

View File

@ -106,7 +106,7 @@
<small i18n>Shared</small>
</div>
}
@for (field of document.custom_fields; track field.id) {
@for (field of document.custom_fields; track field.field) {
@if (displayFields.includes(DisplayField.CUSTOM_FIELD + field.field)) {
<div class="ps-0 p-1 d-flex align-items-center overflow-hidden">
<i-bs width="1em" height="1em" class="me-2 text-muted" name="ui-radios"></i-bs>