Skip to content

Commit

Permalink
Prevent errors when viewing nav after collection has been deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed May 13, 2024
1 parent 08cb2b7 commit 0b1d710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Structures/Nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function collections($collections = null)
->getter(function ($collections) {
return collect($collections)->map(function ($collection) {
return Collection::findByHandle($collection);
});
})->filter();
})
->args(func_get_args());
}
Expand Down

0 comments on commit 0b1d710

Please sign in to comment.