Skip to content

Commit a3c75f8

Browse files
authored
Merge pull request #519 from Thoth2023/feature/snowballing-module
Ajustes snowballing
2 parents 4213b87 + 1c6d76b commit a3c75f8

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

app/Livewire/Conducting/Snowballing/PaperModal.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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');

app/Livewire/Conducting/Snowballing/ReferencesTable.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)