diff --git a/app/Admin/Controllers/CustomRegionController.php b/app/Admin/Controllers/CustomRegionController.php index 6bb167f..f8273ec 100644 --- a/app/Admin/Controllers/CustomRegionController.php +++ b/app/Admin/Controllers/CustomRegionController.php @@ -37,7 +37,7 @@ class CustomRegionController extends AdminController } private function regionList($categoryId){ - $regionList = Region::with('devices')->where('category_id', $categoryId)->get(); + $regionList = Region::with('monitorModes')->where('category_id', $categoryId)->get(); $resList = []; foreach($regionList as $region){ $tabs = Region::regionTabConfig($region);