From f4a6dbda94aea0518926bcd3c0dd1c5f59c7da69 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Fri, 10 Dec 2021 20:46:30 +0100 Subject: [PATCH] fix(admin-ui): Fix display of facet value custom fields Fixes #1282 --- .../facet-detail/facet-detail.component.html | 13 +------------ .../tabbed-custom-fields.component.ts | 4 +++- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/packages/admin-ui/src/lib/catalog/src/components/facet-detail/facet-detail.component.html b/packages/admin-ui/src/lib/catalog/src/components/facet-detail/facet-detail.component.html index b38ea65c4b..6a1c8a951c 100644 --- a/packages/admin-ui/src/lib/catalog/src/components/facet-detail/facet-detail.component.html +++ b/packages/admin-ui/src/lib/catalog/src/components/facet-detail/facet-detail.component.html @@ -119,20 +119,9 @@ - - - - - - - - - - - ({ tabName, customFields })); + return Array.from(tabMap.entries()) + .sort((a, b) => (a[0] < b[0] ? -1 : 1)) + .map(([tabName, customFields]) => ({ tabName, customFields })); } }