Skip to content

Commit

Permalink
Fixed bug when adding organization
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewdrake committed Jul 24, 2024
1 parent 9afb011 commit a24514c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/organisations/partials/fields.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
'value' => old('user_owner_id', $organisation->user_owner_id ?? auth()->user()->id),
])

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

0 comments on commit a24514c

Please sign in to comment.