diff --git a/src/app/send/send.component.html b/src/app/send/send.component.html
index 2a45875..736d11a 100644
--- a/src/app/send/send.component.html
+++ b/src/app/send/send.component.html
@@ -44,7 +44,7 @@
Send to Hydrus
Not yet imported
}
- @for (file of this.currentUrlFiles.url_file_statuses; track file) {
+ @for (file of this.currentUrlFiles.url_file_statuses; track file.hash) {
@if (file.status === 2) {
check
diff --git a/src/app/service-select-dialog/service-select-dialog.component.html b/src/app/service-select-dialog/service-select-dialog.component.html
index 591c6ad..7d4da5d 100644
--- a/src/app/service-select-dialog/service-select-dialog.component.html
+++ b/src/app/service-select-dialog/service-select-dialog.component.html
@@ -5,7 +5,7 @@ {{this.data.title}}
Service
- @for (service of services$ | async; track service) {
+ @for (service of services$ | async; track service.service_key) {
{{service.name}}
diff --git a/src/app/services-info-dialog/services-info-dialog.component.html b/src/app/services-info-dialog/services-info-dialog.component.html
index 5259c1d..f8fbca7 100644
--- a/src/app/services-info-dialog/services-info-dialog.component.html
+++ b/src/app/services-info-dialog/services-info-dialog.component.html
@@ -3,7 +3,7 @@ Hydrus Services
@if (services.hydrusServicesArray$ | async; as services) {
- @for (service of services; track service) {
+ @for (service of services; track service.service_key) {
{{service.name}}
{{service.type_pretty}}
diff --git a/src/app/tag-input/tag-input.component.html b/src/app/tag-input/tag-input.component.html
index 62af4d3..99dc4a5 100644
--- a/src/app/tag-input/tag-input.component.html
+++ b/src/app/tag-input/tag-input.component.html
@@ -53,7 +53,7 @@
} @else {
- @for (tag of tags; track tag) {
+ @for (tag of tags; track tag.value) {
{{tag.value}} ({{tag.count | number}})
@@ -86,7 +86,7 @@
- @for (pred of predicateButtons; track pred) {
+ @for (pred of predicateButtons; track pred.name) {
@if (isConvertedPredicateSingle(pred)) {
} @else {
@@ -99,7 +99,7 @@
- @for (pred of predicates; track pred) {
+ @for (pred of predicates; track pred.predicate) {
}
diff --git a/src/app/tag-siblings-parents-dialog/tag-siblings-parents-dialog.component.html b/src/app/tag-siblings-parents-dialog/tag-siblings-parents-dialog.component.html
index c391963..851195e 100644
--- a/src/app/tag-siblings-parents-dialog/tag-siblings-parents-dialog.component.html
+++ b/src/app/tag-siblings-parents-dialog/tag-siblings-parents-dialog.component.html
@@ -4,7 +4,7 @@ Siblings and Parents for "{{data.tag}}"
@if (siblingsAndParents$ | async; as siblingsAndParents) {
- @for (service of siblingsAndParents | orderBy: 'serviceName' | orderBy: '-serviceType'; track trackByTagService($index, service)) {
+ @for (service of siblingsAndParents | orderBy: 'serviceName' | orderBy: '-serviceType'; track service.serviceKey) {
diff --git a/src/app/tag-siblings-parents-dialog/tag-siblings-parents-dialog.component.ts b/src/app/tag-siblings-parents-dialog/tag-siblings-parents-dialog.component.ts
index b689cbe..74ff5ed 100644
--- a/src/app/tag-siblings-parents-dialog/tag-siblings-parents-dialog.component.ts
+++ b/src/app/tag-siblings-parents-dialog/tag-siblings-parents-dialog.component.ts
@@ -44,10 +44,6 @@ export class TagSiblingsParentsDialogComponent implements OnInit {
);
}
- trackByTagService(index: number, item: {serviceKey: string}) {
- return item.serviceKey;
- }
-
searchTag(tag: string) {
this.dialogRef.close({action: 'searchTag', tag});
}