Skip to content

Commit

Permalink
Check for entries in the collection instead of always true check
Browse files Browse the repository at this point in the history
  • Loading branch information
BobWez98 authored Oct 7, 2024
1 parent 669d370 commit 2cf0a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/NavigationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function edit($navHandle)
{
$navBlueprint = BlueprintRepository::findBlueprintInNamespace('navigation', $navHandle);

if ($navBlueprint) {
if ($navBlueprint->count()) {
$blueprintPath = BlueprintRepository::findBlueprintPath('navigation', $navHandle);

return view('statamic-builder::not-editable', [
Expand Down

0 comments on commit 2cf0a11

Please sign in to comment.