From 3592a34a38ee33cdf862eca0e2bdfc8f8453c685 Mon Sep 17 00:00:00 2001 From: Abood Afifi <38721478+AEM5299@users.noreply.github.com> Date: Thu, 13 Jun 2024 00:34:44 +0000 Subject: [PATCH] Fixed bug --- src/Http/PendingTurboStreamResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/PendingTurboStreamResponse.php b/src/Http/PendingTurboStreamResponse.php index 167ac3e..a51cc1e 100644 --- a/src/Http/PendingTurboStreamResponse.php +++ b/src/Http/PendingTurboStreamResponse.php @@ -327,7 +327,7 @@ private function contentAsRendering() */ public function toResponse($request) { - if (! in_array($this->useAction, ['remove', 'refresh']) && ! $this->partialView && ! $this->inlineContent) { + if (! in_array($this->useAction, ['remove', 'refresh']) && ! $this->partialView && $this->inlineContent === null) { throw TurboStreamResponseFailedException::missingPartial(); }