File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,6 @@ protected function setUp(): void
7171
7272 // Sync the relationship with the provided state (IDs).
7373 $ component ->getRelationship ()->sync ($ state ->toArray ());
74-
75- // Set the component as not dehydrated (assuming this is related to the framework's functionality).
76- $ component ->dehydrated (false );
7774 }
7875 });
7976 }
@@ -96,7 +93,9 @@ private function buildTree(int $parent = null): array|Collection
9693 }
9794
9895 // Create a default query to retrieve related items.
99- $ defaultQuery = $ this ->getRelationship ()->getRelated ()->query ()
96+ $ defaultQuery = $ this ->getRelationship ()
97+ ->getRelated ()
98+ ->query ()
10099 ->where ($ key , $ parent );
101100
102101 // If we're not at the root level and a modification callback is provided, apply it to the query.
You can’t perform that action at this time.
0 commit comments