From cf63a9bb5385d40684f9b55d73b1659287977192 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Wed, 22 May 2019 17:18:46 +0200 Subject: [PATCH] FIX: exception when pressing backspace on empty selection (#7587) --- app/assets/javascripts/select-kit/mixins/events.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/select-kit/mixins/events.js.es6 b/app/assets/javascripts/select-kit/mixins/events.js.es6 index 167fc223e0d..7c8ac46684e 100644 --- a/app/assets/javascripts/select-kit/mixins/events.js.es6 +++ b/app/assets/javascripts/select-kit/mixins/events.js.es6 @@ -249,7 +249,7 @@ export default Ember.Mixin.create({ return; } - if (!this.get("selection").length) return; + if (!this.selection || !this.selection.length) return; if (!Ember.isEmpty(this.get("filter"))) { this.clearHighlightSelection();