From 09ee22fec569a8b02654586e1f68a1c9e6bbb947 Mon Sep 17 00:00:00 2001 From: Alex Berger Date: Mon, 13 Nov 2017 17:55:34 +0100 Subject: [PATCH 1/2] FIX rename column - underscores are not allowed in column names --- config/columns.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/columns.js b/config/columns.js index 2bb61b3..5187c30 100644 --- a/config/columns.js +++ b/config/columns.js @@ -62,13 +62,13 @@ const defaultScoreAutocompleteConfig = { export const _COLUMNS_ = { types, // Columns with order - columns: [['name', 0], ['hotspots', 2], ['resources', 3], ['credibility', 4], ['environment', 5], ['social', 6], ['animal_welfare', 7], ['countries', 8]], + columns: [['name', 0], ['hotspots', 2], ['resources', 3], ['credibility', 4], ['environment', 5], ['social', 6], ['animal', 7], ['countries', 8]], columnValueMap: { 'name': 'name', 'credibility': 'details.score.credibility', 'environment': 'details.score.environment', 'social': 'details.score.social', - 'animal_welfare': 'details.score.animal_welfare', + 'animal': 'details.score.animal_welfare', 'hotspots': 'hotspots', 'resources': 'resources', 'countries': 'countries' @@ -78,7 +78,7 @@ export const _COLUMNS_ = { 'details.score.credibility': 'credibility', 'details.score.environment': 'environment', 'details.score.social': 'social', - 'details.score.animal_welfare': 'animal_welfare', + 'details.score.animal_welfare': 'animal', 'hotspots': 'hotspots', 'resources': 'resources', 'countries': 'countries' @@ -120,7 +120,7 @@ export const _COLUMNS_ = { 'only': ['details'], 'include': [] }, - 'animal_welfare': { + 'animal': { 'only': ['animal_welfare'], 'include': [] }, From 8f2ed8b31b301619e0a1097c86d5720acddde2bb Mon Sep 17 00:00:00 2001 From: Alex Berger Date: Mon, 13 Nov 2017 17:56:36 +0100 Subject: [PATCH 2/2] FIX only 'details' - 'details' is supposed to be 'only' --- config/columns.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/columns.js b/config/columns.js index 5187c30..76f51ae 100644 --- a/config/columns.js +++ b/config/columns.js @@ -121,7 +121,7 @@ export const _COLUMNS_ = { 'include': [] }, 'animal': { - 'only': ['animal_welfare'], + 'only': ['details'], 'include': [] }, 'hotspots': {