Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix table sort

Chocobozzz445866967fe3
diff --git a/client/src/app/shared/shared-tables/table.component.html b/client/src/app/shared/shared-tables/table.component.html
index b9558b7220..a62209a218 100644
--- a/client/src/app/shared/shared-tables/table.component.html
+++ b/client/src/app/shared/shared-tables/table.component.html
@@ -74,11 +74,11 @@
@for (column of columns; track column.id) {
@if (isColumnDisplayed(column.id)) {
@if (column.sortable) {
- <th scope="col" [ngbTooltip]="sortTooltip" container="body" [pSortableColumn]="getUntypedColumnId(column)" [ngClass]="column.class">
+ <th scope="col" [ngbTooltip]="sortTooltip" container="body" [pSortableColumn]="column.sortKey" [ngClass]="column.class">
{{ column.label }}
<small *ngIf="column.labelSmall">{{ column.labelSmall }}</small>
- <p-sortIcon [field]="getUntypedColumnId(column)"></p-sortIcon>
+ <p-sortIcon [field]="column.sortKey"></p-sortIcon>
</th>
} @else {
<th scope="col" [ngClass]="column.class">