Skip to content

Commit a9fd9d8

Browse files
authored
Merge pull request #6 from 15web/fix-parent-depth
Fix depth condition
2 parents b9f6fed + c591ccc commit a9fd9d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Form/ParentSelect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static function make(QueryBuilder $query): Select
2424
);
2525

2626
$depth = $item->getAttribute('depth');
27-
if ($depth < 1) {
27+
if ($depth < 0) {
2828
throw new RuntimeException('The tree is corrupted, please Fix tree');
2929
}
3030

0 commit comments

Comments
 (0)