Skip to content

Commit 76807b9

Browse files
Cleaning up
1 parent a43bf3d commit 76807b9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/SelectTree.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)