Skip to content

Commit 2e6b310

Browse files
authored
Merge pull request #10 from sl0wik/bugfix/fixed_index_positioning
Fixed index poistioning
2 parents 992c7ea + 4692076 commit 2e6b310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/Content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function parent()
4747
*/
4848
public static function indexPage()
4949
{
50-
return self::orderBy('position', 'ASC')->first();
50+
return self::whereNull('parent_id')->orderBy('position', 'ASC')->first();
5151
}
5252

5353
/**

0 commit comments

Comments
 (0)