Skip to content

Commit

Permalink
Fall back to boolean on canSelectAcrossSites instead of null (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnwjn authored Aug 7, 2024
1 parent 2547d51 commit 8c73ba9
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 @@ -18,7 +18,7 @@ public static function fromModel(Model $model)
->collections($model->settings['collections'] ?? null)
->maxDepth($model->settings['max_depth'] ?? null)
->expectsRoot($model->settings['expects_root'] ?? false)
->canSelectAcrossSites($model->settings['select_across_sites'] ?? null)
->canSelectAcrossSites($model->settings['select_across_sites'] ?? false)
->model($model);
}

Expand Down

0 comments on commit 8c73ba9

Please sign in to comment.