Skip to content

Commit cb00da1

Browse files
fix: adds check for original content existance
1 parent b73bf02 commit cb00da1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Events/LivewireDispatcher.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ public function handle(RequestHandled $handled)
2020
{
2121
$identifier = 'NativePHP Livewire Dispatcher';
2222
$html = $handled->response->getContent();
23-
$originalContent = $handled->response->original;
23+
$originalContent = $handled->response->original ?? null;
24+
25+
if (! $originalContent) {
26+
return;
27+
}
2428

2529
if (! $handled->response->isSuccessful()) {
2630
return;

0 commit comments

Comments
 (0)