Skip to content

Commit 87b91eb

Browse files
author
Marius
committed
fix forceReplace macro
1 parent e0050bb commit 87b91eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/CrudProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function (...$arguments): Model {
4242
Request::macro('forceOffsetUnset', function (string $offset): Request {
4343
/** @var Request $this */
4444

45-
if ($this->json()->has($offset) > 0) {
45+
if ($this->isJson()) {
4646
$this->json()->remove($offset);
4747
}
4848

0 commit comments

Comments
 (0)