From 4fe9278528fcf65df2c7f57b44861444d50aba2a Mon Sep 17 00:00:00 2001 From: Bryan Marchena Date: Thu, 18 Apr 2024 15:43:55 -0400 Subject: [PATCH 1/2] Remove row header values from previous decennial data --- app/components/data-table-row-previous.js | 3 ++- app/templates/components/data-table-row-previous.hbs | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/components/data-table-row-previous.js b/app/components/data-table-row-previous.js index b120d4a5..ab2bb518 100644 --- a/app/components/data-table-row-previous.js +++ b/app/components/data-table-row-previous.js @@ -33,7 +33,7 @@ export default Component.extend({ noPriorData: computed('data.previous.sum', function() { const { 'data.previous': previous } = this.getProperties('data.previous'); - if (previous && (typeof previous.sum === 'undefined' || previous.sum === null)) { + if ((previous && (typeof previous.sum === 'undefined' || previous.sum === null)) || typeof previous === 'undefined') { return true } return false @@ -46,6 +46,7 @@ export default Component.extend({ }, click() { + console.log('click - data table', this); this.set('isSelected', !this.isSelected); }, }); diff --git a/app/templates/components/data-table-row-previous.hbs b/app/templates/components/data-table-row-previous.hbs index 4beed059..db871ba9 100644 --- a/app/templates/components/data-table-row-previous.hbs +++ b/app/templates/components/data-table-row-previous.hbs @@ -139,7 +139,11 @@ + {{#unless (not this.rowConfig.data)}} Data for this row are not comparable or are unavailable + {{else}} +   + {{/unless}} {{else}}   From 2a4e1205bccf8d626efa5df745e767dd620d043b Mon Sep 17 00:00:00 2001 From: Bryan Marchena Date: Thu, 18 Apr 2024 15:50:36 -0400 Subject: [PATCH 2/2] Remove row header values from change over time decennial data --- app/components/data-table-row-change.js | 2 +- app/components/data-table-row-previous.js | 1 - app/templates/components/data-table-row-change.hbs | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/components/data-table-row-change.js b/app/components/data-table-row-change.js index 5e51fb1e..64b90a2e 100644 --- a/app/components/data-table-row-change.js +++ b/app/components/data-table-row-change.js @@ -36,7 +36,7 @@ export default Component.extend({ noPriorData: computed('data.previous.sum', function() { const { 'data.previous': previous } = this.getProperties('data.previous'); - if (previous && (typeof previous.sum === 'undefined' || previous.sum === null)) { + if ((previous && (typeof previous.sum === 'undefined' || previous.sum === null)) || typeof previous === 'undefined') { return true } return false diff --git a/app/components/data-table-row-previous.js b/app/components/data-table-row-previous.js index ab2bb518..8bfc906e 100644 --- a/app/components/data-table-row-previous.js +++ b/app/components/data-table-row-previous.js @@ -46,7 +46,6 @@ export default Component.extend({ }, click() { - console.log('click - data table', this); this.set('isSelected', !this.isSelected); }, }); diff --git a/app/templates/components/data-table-row-change.hbs b/app/templates/components/data-table-row-change.hbs index ed18a59f..a16fec9c 100644 --- a/app/templates/components/data-table-row-change.hbs +++ b/app/templates/components/data-table-row-change.hbs @@ -208,7 +208,11 @@ + {{#unless (not this.rowConfig.data)}} Data for this row are not comparable or are unavailable + {{else}} +   + {{/unless}} {{else}}