Skip to content

Commit

Permalink
Fix main variable when Multiple Mode is Off
Browse files Browse the repository at this point in the history
  • Loading branch information
AbsoluteMate authored Jan 18, 2024
1 parent f5ae5aa commit 4b18eff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Livewire/Dropzone.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function handleUpload(TemporaryUploadedFile $file): void
#[On('{uuid}:fileAdded')]
public function onFileAdded(array $file): void
{
$this->files[] = $file;
$this->files = $this->multiple ? array_merge($this->files, [$file]) : [$file];
}

/**
Expand Down

0 comments on commit 4b18eff

Please sign in to comment.