Skip to content

Commit

Permalink
Merge branch '1.x' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément Tessier committed Feb 17, 2022
2 parents 5111f62 + ce72ff6 commit c4ee583
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/AdvancedImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ protected function fillAttribute(NovaRequest $request, $requestAttribute, $model

parent::fillAttribute($request, $requestAttribute, $model, $attribute);

Storage::disk($this->disk)->delete($previousFileName);
if ($previousFileName !== null) {
Storage::disk($this->disk)->delete($previousFileName);
}
}

/**
Expand Down

0 comments on commit c4ee583

Please sign in to comment.