Account for an empty string node class

This commit is contained in:
Michael Lange 2020-03-13 00:18:30 -07:00
parent 01341530e7
commit b8ce8c436f

View file

@ -46,7 +46,9 @@ export default Controller.extend(
selectionVolume: selection('qpVolume'),
optionsClass: computed('nodes.[]', function() {
const classes = Array.from(new Set(this.nodes.mapBy('nodeClass'))).compact();
const classes = Array.from(new Set(this.nodes.mapBy('nodeClass')))
.compact()
.without('');
// Remove any invalid node classes from the query param/selection
scheduleOnce('actions', () => {