We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fba54f commit c5c8c42Copy full SHA for c5c8c42
src/controllers/BaseController.php
@@ -97,7 +97,8 @@ public function actionIndex(): array|string
97
$props = $jsonData['props'] ?? [];
98
99
if (Inertia::getInstance()->settings->injectElementAsProp !== true) {
100
- unset($templateVariables['element']);
+ unset($templateVariables['entry']);
101
+ unset($templateVariables['category']);
102
}
103
104
// Merge $props with $templateVariables, $props takes precedence
0 commit comments