селектор помещений из апи

This commit is contained in:
developer 2026-04-02 09:16:31 +08:00
parent e75deb82b4
commit df6991e2d8

View File

@ -89,7 +89,7 @@ public function render()
if (array_key_exists('bs', $this->filter) && $this->filter['bs'] && $room['bs'] != $this->filter['bs']) {
continue;
}
if (array_key_exists('type', $this->filter) && $this->filter['type'] && $room['type'] != $this->filter['type']) {
if (array_key_exists('type', $this->filter) && $this->filter['type'] !== null && $room['type'] != $this->filter['type']) {
continue;
}
if (array_key_exists('min_area', $this->filter) && $room['area'] < $this->filter['min_area']) {