File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1414
1515class SelectTree extends Field
1616{
17- use HasRelationships;
1817 use CanBeDisabled;
1918 use CanBeSearchable;
2019 use HasPlaceholder;
20+ use HasRelationships;
2121
2222 protected string $ view = 'select-tree::select-tree ' ;
2323
@@ -99,10 +99,10 @@ private function buildTree(int $parent = null): array|Collection
9999 $ defaultQuery = $ this ->getRelationship ()->getRelated ()->query ()
100100 ->where ($ key , $ parent );
101101
102- // // If we're not at the root level and a modification callback is provided, apply it.
103- // if (!$parent && $this->modifyQueryUsing) {
104- // $defaultQuery = $this->evaluate($this->modifyQueryUsing, ['query' => $defaultQuery]);
105- // }
102+ // // If we're not at the root level and a modification callback is provided, apply it.
103+ // if (!$parent && $this->modifyQueryUsing) {
104+ // $defaultQuery = $this->evaluate($this->modifyQueryUsing, ['query' => $defaultQuery]);
105+ // }
106106
107107 // Fetch the results from the default query.
108108 $ results = $ defaultQuery ->get ();
You can’t perform that action at this time.
0 commit comments