Browse Source

fix(admin-ui): Fix broken Collection list & Order detail views

A regression introduced by #3368 caused the collection list and order
detail pages to break. This is because a change was made to the
DataTable2 component, but the required updates were not made to 2
components which extend it, which are used on those pages.
Michael Bromley 10 months ago
parent
commit
6a5bb90b61

+ 1 - 1
packages/admin-ui/src/lib/catalog/src/components/collection-data-table/collection-data-table.component.html

@@ -114,7 +114,7 @@
                               id: id,
                           };
                 index as i;
-                trackBy: trackByFn
+                trackBy: trackByFn.bind(this)
             "
             >
                 <ng-container

+ 1 - 1
packages/admin-ui/src/lib/order/src/components/order-data-table/order-data-table.component.html

@@ -100,7 +100,7 @@
                                   totalItems: totalItems
                               };
                     index as i;
-                    trackBy: trackByFn
+                    trackBy: trackByFn.bind(this)
                 "
             >
                 <td *ngIf="selectionManager" class="selection-col" [class.active]="activeIndex === i">