Account for an empty string node class
This commit is contained in:
parent
01341530e7
commit
b8ce8c436f
|
@ -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', () => {
|
||||||
|
|
Loading…
Reference in New Issue