Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed Dec 15, 2023
1 parent f4d672b commit bace829
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Livewire/Concerns/WithFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public function mountWithFields(): void
public function mountedFields($fields)
{
//

}

protected function fields(): Collection
Expand Down Expand Up @@ -68,12 +67,12 @@ public function sections(): Collection
return [
'handle' => $handle,
'id' => "{$this->getId()}-section-{$index}-{$handle}",
'display' => $section->display(), // TODO: Make translatable.
'instructions' => $section->instructions(), // TODO: Make translatable
'display' => $section->display(),
'instructions' => $section->instructions(),
'fields' => $this->fields->intersectByKeys($section->fields()->all()),
];
})
->filter(fn ($section) => $section['fields']->isNotEmpty()); // Remove empty sections with no fields.
->filter(fn ($section) => $section['fields']->isNotEmpty());
}

public function section(string $handle): ?array
Expand Down

0 comments on commit bace829

Please sign in to comment.