]> BookStack Code Mirror - bookstack/blobdiff - app/Actions/ViewService.php
Docker: Fix PHP tests
[bookstack] / app / Actions / ViewService.php
index ec57cdb764b6e701a109c20a7ad9668048db2f94..51a60d96e20effd49c6eda2ea7f247deb828d6a6 100644 (file)
@@ -74,7 +74,12 @@ class ViewService
             $query->whereIn('viewable_type', $this->entityProvider->getMorphClasses($filterModels));
         }
 
-        return $query->with('viewable')->skip($skipCount)->take($count)->get()->pluck('viewable');
+        return $query->with('viewable')
+            ->skip($skipCount)
+            ->take($count)
+            ->get()
+            ->pluck('viewable')
+            ->filter();
     }
 
     /**