File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
app/Livewire/Conducting/Snowballing Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ public function showPaperSnowballing($paper)
5555 $ this ->dispatch ('update-references ' , [
5656 'paper_reference_id ' => $ this ->paper ['id_paper ' ] ?? null ,
5757 ]);
58+ Log::info ('Dispatched update-references ' , ['paper_reference_id ' => $ this ->paper ['id_paper ' ] ?? null ]);
5859
5960 // Dispara o evento para mostrar o modal
6061 $ this ->dispatch ('show-paper-snowballing ' );
Original file line number Diff line number Diff line change @@ -14,15 +14,10 @@ class ReferencesTable extends Component
1414 public $ backwardCount = 0 ; // Contador para Backward
1515 public $ forwardCount = 0 ; // Contador para Forward
1616
17- public function mount ($ data = null )
17+ public function mount ()
1818 {
19- // Verifica se $data foi passado e contém o campo necessário
20- $ this ->paper_reference_id = $ data ['paper_reference_id ' ] ?? null ;
19+ $ this ->loadReferences ();
2120
22- // Carrega as referências se o ID do paper estiver definido
23- if ($ this ->paper_reference_id ) {
24- $ this ->loadReferences ();
25- }
2621 }
2722
2823
You can’t perform that action at this time.
0 commit comments