Skip to content

Commit

Permalink
Fixed an issue where whenever files are uploaded, dependencies are lost
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanjansen committed Feb 24, 2021
1 parent c2519c2 commit b617ade
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Livewire/ResourceForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ public function updatedStore($key, $value)

public function getPanelsProperty(): Collection
{
$this->model->store = $this->store;

return $this->resource()
->panels($this, $this->model, isset($model->id) ? 'update' : 'create')
->each(fn ($panel) => $panel->id ??= Str::random(20));
Expand Down

0 comments on commit b617ade

Please sign in to comment.