Skip to content

Commit

Permalink
Fiexes chain field conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
zareismail committed Nov 13, 2020
1 parent 9b418e1 commit db516a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/components/FormField.vue
Expand Up @@ -162,7 +162,7 @@ export default {
formData,
{
params: {
field: this.field.attribute,
viaField: this.field.attribute,
resourceId: this.resourceId,
viaResource: this.viaResource,
viaResourceId: this.viaResourceId,
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/ChainFieldController.php
Expand Up @@ -22,7 +22,7 @@ public function handle(NovaRequest $request)
return $resource
->availableFields($request)
->authorized($request)
->findFieldByAttribute($request->field, function () {
->findFieldByAttribute($request->viaField, function () {
abort(response()->json([]));
})
->resolveFields($request)
Expand Down

0 comments on commit db516a1

Please sign in to comment.