Skip to content

Commit

Permalink
fix forceReplace macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius committed Dec 4, 2024
1 parent f11e29d commit 16a17cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/CrudProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function (...$arguments): Model {
Request::macro('forceOffsetUnset', function (string $offset): Request {
/** @var Request $this */

if ($this->json()->count() > 0) {
if ($this->json()->has($offset)) {
$this->json()->remove($offset);
}

Expand Down

0 comments on commit 16a17cb

Please sign in to comment.