mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Adds condition to only charge custom field's livewire when the model is updated
This commit is contained in:
parent
92b3576395
commit
9ae03f21dc
|
@ -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')])
|
||||
|
|
Loading…
Reference in a new issue