Skip to content

Commit

Permalink
fix: add request to dependsOnSync
Browse files Browse the repository at this point in the history
  • Loading branch information
ianrobertsFF committed Dec 29, 2022
1 parent 0bfe536 commit 065d1bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Middleware/InterceptSubfieldDependsOn.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function handle(Request $request, Closure $next): Response {

// If there are additional actions needed after dependsOn sync, run them
if (method_exists($field, "afterDependsOnSync")) {
$field = $field->afterDependsOnSync() ?? $field;
$field = $field->afterDependsOnSync($novaRequest) ?? $field;
}

$response = response()->json($field);
Expand Down

0 comments on commit 065d1bc

Please sign in to comment.