Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Commit 0c0f923

Browse files
committed
Dont modify response if no view was loaded
1 parent 001ad03 commit 0c0f923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/XrayMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function handle($request, Closure $next)
4242
|| $response->getContent() === false
4343
) {
4444
return $response;
45-
} elseif (is_null($response->exception)) {
45+
} elseif (is_null($response->exception) && !is_null($this->xray->getBaseView())) {
4646
// Modify the response to add the Debugbar
4747
$this->injectXrayBar($response);
4848
}

0 commit comments

Comments
 (0)