Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
noxoua committed Nov 3, 2023
1 parent 66cfaa4 commit fcc049d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fields/Concerns/Types/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ trait Media

public bool $gallery = false;

public function media(bool $gallery = false): static
public function media(?bool $gallery = false): static
{
$this->type('media');
$this->view('image');
$this->relation();
$this->gallery = $gallery;
$this->gallery = (bool) $gallery;

if ($gallery) {
$this->square();
Expand Down

0 comments on commit fcc049d

Please sign in to comment.