We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6194c52 commit e54d179Copy full SHA for e54d179
src/Screen/Layouts/TabMenu.php
@@ -24,17 +24,19 @@ abstract class TabMenu extends Layout
24
/**
25
* @throws Throwable
26
*
27
- * @return Factory|\Illuminate\View\View
+ * @return Factory|\Illuminate\View\View|void
28
*/
29
public function build(Repository $repository)
30
{
31
$this->query = $repository;
32
33
- if (! $this->isSee()) {
+ $navigations = $this->navigations();
34
+
35
+ if (! $this->isSee() || empty($navigations)) {
36
return;
37
}
38
- $form = new Builder($this->navigations(), $repository);
39
+ $form = new Builder($navigations, $repository);
40
41
return view($this->template, [
42
'navigations' => $form->generateForm(),
0 commit comments