mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 06:03:38 +08:00
FIX: exception when pressing backspace on empty selection (#7587)
This commit is contained in:
parent
c238f0d223
commit
cf63a9bb53
|
@ -249,7 +249,7 @@ export default Ember.Mixin.create({
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.get("selection").length) return;
|
if (!this.selection || !this.selection.length) return;
|
||||||
|
|
||||||
if (!Ember.isEmpty(this.get("filter"))) {
|
if (!Ember.isEmpty(this.get("filter"))) {
|
||||||
this.clearHighlightSelection();
|
this.clearHighlightSelection();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user