FIX: exception when pressing backspace on empty selection (#7587)

This commit is contained in:
Joffrey JAFFEUX 2019-05-22 17:18:46 +02:00 committed by GitHub
parent c238f0d223
commit cf63a9bb53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();