Kaynağa Gözat

member - fix cliccando su ricarica borsellino da errore

ferrari 2 ay önce
ebeveyn
işleme
1d730e9299
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      app/Http/Livewire/Causals.php

+ 1 - 1
app/Http/Livewire/Causals.php

@@ -32,7 +32,7 @@ class Causals extends Component
         $this->idx = $idx;
         $this->causal_id = $causal_id;
 
-        if ($this->causal_id != null) {
+        if ($this->causal_id != null && $this->causal_id != 0) {
             $c = \App\Models\Causal::findOrFail($this->causal_id);
             $ids = array_reverse($c->recursiveParent($c->parent_id, [$c->id]));