Skip to content

Commit a24514c

Browse files
committed
Fixed bug when adding organization
1 parent 9afb011 commit a24514c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/organisations/partials/fields.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
'value' => old('user_owner_id', $organisation->user_owner_id ?? auth()->user()->id),
8888
])
8989

90-
@include('laravel-crm::fields.partials.model', ['model' => $organisation])
90+
@include('laravel-crm::fields.partials.model', ['model' => $organisation ?? new \VentureDrake\LaravelCrm\Models\Organisation()])
9191
</div>
9292
<div class="col-sm-6">
9393
@livewire('phone-edit', [

0 commit comments

Comments
 (0)