When removing a filter condition, try recalculate in case it wasn't the last one
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
113a0f1b5c
commit
0097ba24a4
1 changed files with 1 additions and 0 deletions
|
@ -158,6 +158,7 @@ export class Algorithm extends EventEmitter {
|
||||||
filterCondition.off(FILTER_CHANGED, this.handleFilterChange.bind(this));
|
filterCondition.off(FILTER_CHANGED, this.handleFilterChange.bind(this));
|
||||||
if (this.allowedByFilter.has(filterCondition)) {
|
if (this.allowedByFilter.has(filterCondition)) {
|
||||||
this.allowedByFilter.delete(filterCondition);
|
this.allowedByFilter.delete(filterCondition);
|
||||||
|
this.recalculateFilteredRooms();
|
||||||
|
|
||||||
// If we removed the last filter, tell consumers that we've "updated" our filtered
|
// If we removed the last filter, tell consumers that we've "updated" our filtered
|
||||||
// view. This will trick them into getting the complete room list.
|
// view. This will trick them into getting the complete room list.
|
||||||
|
|
Loading…
Reference in a new issue