Skip to content

Commit

Permalink
fix index of filament-tree columns
Browse files Browse the repository at this point in the history
  • Loading branch information
cklei-carly committed Oct 6, 2023
1 parent 5bd456b commit 42193d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Macros/BlueprintMarcos.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public function treeColumns()
{
return function (string $titleType = 'string') {
$this->{$titleType}(Utils::titleColumnName());
$this->integer(Utils::parentColumnName())->default(Utils::defaultParentId());
$this->integer(Utils::orderColumnName())->default(0)->index();
$this->integer(Utils::parentColumnName())->default(Utils::defaultParentId())->index();
$this->integer(Utils::orderColumnName())->default(0);
};
}
}

0 comments on commit 42193d6

Please sign in to comment.