laravel-nova-nested-form icon indicating copy to clipboard operation
laravel-nova-nested-form copied to clipboard

Nested Form Not Working, Clicking On the Relation Returns Error

Open jahid56 opened this issue 4 years ago • 3 comments

When I The Nested Form it Thorws Error in Vue [Vue warn]: Error in v-on handler: "TypeError: Cannot read property 'key' of undefined" vendor.js?id=cf24b7c78df6fa73c9fc:96048 TypeError: Cannot read property 'key' of undefined I don't Get Where the Problem Was. Here is My Code NestedForm::make('Profile', 'profile') ->heading('Profile'),

My relation Are In User Model public function profile() { return $this->hasOne(Profile::class); } And In Profile Model public function user() { return $this->belongsTo(User::class); }

jahid56 avatar Dec 02 '19 14:12 jahid56

I am receiving the same error.

Leotrimlota avatar Dec 05 '19 13:12 Leotrimlota

@jahid56 this pull request solves the problem Pull Request

Leotrimlota avatar Dec 05 '19 13:12 Leotrimlota

I get the same error with a HasOne relation. Is the above PR to be merged anytime soon?

abishekrsrikaanth avatar Dec 23 '19 07:12 abishekrsrikaanth