Commit c1dac85a authored by Mark Harding's avatar Mark Harding

(fix): null entity on media sidebar suggestion throwing exception

parent d9d323af
No related merge requests found
Pipeline #77955027 passed with stages
in 17 minutes and 26 seconds
......@@ -43,7 +43,10 @@ class recommended implements Interfaces\Api
// Get the next entity
if ($next) {
$entities[] = Entities\Factory::build($next);
$entity = Entities\Factory::build($next);
if ($entity) {
$entities[] = $entity;
}
}
// Calculate free slots
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment