diff --git a/src/components/BrowserCell/BrowserCell.react.js b/src/components/BrowserCell/BrowserCell.react.js index c2d31de5a3..52cccf903b 100644 --- a/src/components/BrowserCell/BrowserCell.react.js +++ b/src/components/BrowserCell/BrowserCell.react.js @@ -506,7 +506,7 @@ export default class BrowserCell extends Component { pickFilter(constraint, addToExistingFilter) { const definition = Filters.Constraints[constraint]; - const { filters, type, value, field } = this.props; + const { filters, type, value, field, className } = this.props; const newFilters = addToExistingFilter ? filters : new List(); let compareTo; if (definition.comparable) { @@ -535,6 +535,7 @@ export default class BrowserCell extends Component { field, constraint, compareTo, + class: className }) ) ); diff --git a/src/dashboard/Data/Browser/Browser.react.js b/src/dashboard/Data/Browser/Browser.react.js index 5a5272864c..88f07a5998 100644 --- a/src/dashboard/Data/Browser/Browser.react.js +++ b/src/dashboard/Data/Browser/Browser.react.js @@ -310,7 +310,12 @@ class Browser extends DashboardView { const query = new URLSearchParams(props.location.search); if (query.has('filters')) { const queryFilters = JSON.parse(query.get('filters')); - queryFilters.forEach(filter => (filters = filters.push(new Map(filter)))); + queryFilters.forEach( + filter => + (filters = filters.push( + new Map({ ...filter, class: filter.class || props.params.className }) + )) + ); } return filters; }