Adds condition to only charge custom field's livewire when the model is updated

This commit is contained in:
Ivan Nieto Vivanco 2022-01-15 12:05:15 -06:00
parent 92b3576395
commit 9ae03f21dc

View file

@ -34,7 +34,9 @@
</div>
<!-- Custom Fieldset -->
@livewire('custom-field-set-default-values-for-model',["model_id" => $item->id])
@if (isset($item->id))
@livewire('custom-field-set-default-values-for-model',["model_id" => $item->id])
@endif
@include ('partials.forms.edit.notes')
@include ('partials.forms.edit.requestable', ['requestable_text' => trans('admin/models/general.requestable')])