Skip to content

Commit 92ecd02

Browse files
Fix view property type and close div in pedigree chart
1 parent e6c1d1f commit 92ecd02

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/Livewire/FanChart.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
class FanChart extends Widget
1010
{
11-
protected static string $view = 'filament.widgets.fan-chart-widget';
11+
protected string $view = 'filament.widgets.fan-chart-widget';
1212

1313
public ?int $rootPersonId = null;
1414
public int $generations = 5;
@@ -109,6 +109,6 @@ public function setColorScheme($scheme): void
109109

110110
public function render(): View
111111
{
112-
return view(static::$view, $this->getData());
112+
return view($this->view, $this->getData());
113113
}
114114
}

resources/views/livewire/pedigree-chart.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
</div>
3232
@endif
3333
</div>
34-
</div>
3534

3635
<style>
3736
.pedigree-tree {
@@ -178,4 +177,5 @@ function expandPerson(personId) {
178177
console.log('Pedigree chart refreshed');
179178
});
180179
});
181-
</script>
180+
</script>
181+
</div>

0 commit comments

Comments
 (0)