Luca Parisio il y a 7 mois
Parent
commit
f7dfc0364f
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      app/Http/Livewire/RecordIN.php

+ 2 - 1
app/Http/Livewire/RecordIN.php

@@ -117,7 +117,7 @@ class RecordIN extends Component
     ];
 
     public function updatedMemberId() {
-        $this->emit('refresh');
+        
         if ($this->member_id > 0)
         {
             $member = \App\Models\Member::findOrFail($this->member_id);
@@ -138,6 +138,7 @@ class RecordIN extends Component
             $this->newMemberFiscalCode = '';
             $this->newMemberFiscalCodeExist = false;
         }
+        $this->emit('refresh');
     }
 
     public function updatedCausalId() {