From bc15e9229f2156eed1d5c71e1eb8da2bb36d8a12 Mon Sep 17 00:00:00 2001 From: Bruce Martin Date: Tue, 30 Oct 2018 11:03:40 -0700 Subject: [PATCH] update config params to match REST API spec (#393) --- client/src/components/categorical/categorical.js | 4 ++-- client/src/globals.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/categorical/categorical.js b/client/src/components/categorical/categorical.js index 9e777d79..c8f4ae4e 100644 --- a/client/src/components/categorical/categorical.js +++ b/client/src/components/categorical/categorical.js @@ -25,8 +25,8 @@ const truncateCategories = options => { ranges: _.get(state.controls.world, "summary.obs", null), categorySelectionLimit: _.get( state.config, - "parameters.category-selection-limit", - globals.configDefaults.parameters["category-selection-limit"] + "parameters.max-category-items", + globals.configDefaults.parameters["max-category-items"] ) })) class Categories extends React.Component { diff --git a/client/src/globals.js b/client/src/globals.js index 7f19c851..359d7fc5 100644 --- a/client/src/globals.js +++ b/client/src/globals.js @@ -39,7 +39,7 @@ export const configDefaults = { features: {}, displayNames: {}, parameters: { - "category-selection-limit": 1000 + "max-category-items": 1000 } };