From 6c6423f68484ceb485ce9a16901091613bb1be58 Mon Sep 17 00:00:00 2001 From: Gavsto Date: Fri, 25 Feb 2022 19:46:27 +0000 Subject: [PATCH] ENHANCEMENT: Added display name instead of SKU to BPA Fixes #725 --- src/views/tenant/standards/BestPracticeAnalyser.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/tenant/standards/BestPracticeAnalyser.js b/src/views/tenant/standards/BestPracticeAnalyser.js index 7cf45b7dfa68..1d0e04996417 100644 --- a/src/views/tenant/standards/BestPracticeAnalyser.js +++ b/src/views/tenant/standards/BestPracticeAnalyser.js @@ -52,10 +52,10 @@ const BestPracticeAnalyser = () => { const handleUnusedLicense = ({ row }) => { const columns = [ { - name: 'SKU', - selector: (row) => row['SKU'], + name: 'License', + selector: (row) => row['License'], sortable: true, - exportSelector: 'SKU', + exportSelector: 'License', }, { name: 'Purchased', @@ -78,7 +78,7 @@ const BestPracticeAnalyser = () => { .map((sku) => sku.split(': ').reduce((key, val) => ({ [key]: val }))) .reduce((pv, cv) => ({ ...pv, ...cv })), ) - .sort((a, b) => b.SKU.toLocaleLowerCase().localeCompare(a.SKU.toLocaleLowerCase())) + .sort((a, b) => b.License.toLocaleLowerCase().localeCompare(a.License.toLocaleLowerCase())) ModalService.open({ data: tabularized,