mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:17:08 +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;
|
||||
}
|
||||
|
||||
if (!this.get("selection").length) return;
|
||||
if (!this.selection || !this.selection.length) return;
|
||||
|
||||
if (!Ember.isEmpty(this.get("filter"))) {
|
||||
this.clearHighlightSelection();
|
||||
|
|
Loading…
Reference in New Issue
Block a user