Added a condition to send correct model id when cloning one

This commit is contained in:
Ivan Nieto Vivanco 2023-08-24 15:18:51 -06:00
parent 26dd992d3c
commit 950536f59f

View file

@ -33,6 +33,11 @@
</div>
</div>
@php
if (is_null($item->id)){
$item->id = $item->getOriginal('id');
}
@endphp
<!-- Custom Fieldset -->
@livewire('custom-field-set-default-values-for-model',["model_id" => $item->id])