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
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,9 @@ export default Controller.extend(
selectionVolume: selection('qpVolume'), selectionVolume: selection('qpVolume'),
optionsClass: computed('nodes.[]', function() { 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 // Remove any invalid node classes from the query param/selection
scheduleOnce('actions', () => { scheduleOnce('actions', () => {