From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 9 Jul 2024 20:06:06 +0000 (-0700) Subject: Fix: correct card display custom field trackby variable X-Git-Tag: v2.11.0~1^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff4203938b954dbe4ea3f64333eeb03795887c55;p=thirdparty%2Fpaperless-ngx.git Fix: correct card display custom field trackby variable --- diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html index 7e406a7c75..1a8c7df827 100644 --- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html +++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html @@ -127,7 +127,7 @@ } - @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)) {
diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html index 9667163fb0..92449214e9 100644 --- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html +++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html @@ -106,7 +106,7 @@ Shared
} - @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)) {