Skip to content

Commit 68b7552

Browse files
authored
[6.x] Avoid version inertia prop (#14783)
1 parent 32cfa03 commit 68b7552

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

src/Http/Middleware/CP/HandleAuthenticatedInertiaRequests.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ private function authedStatamicProps($request)
4747
private function alwaysProps()
4848
{
4949
return [
50+
'version' => Statamic::version(),
5051
'isPro' => Statamic::pro(),
5152
'nav' => $this->nav(),
5253
'cmsName' => __(Statamic::pro() ? config('statamic.cp.custom_cms_name', 'Statamic') : 'Statamic'),

src/Http/Middleware/CP/HandleInertiaRequests.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public function share(Request $request): array
2828
return array_filter([
2929
...parent::share($request),
3030
'_statamic' => [
31-
'version' => Statamic::version(),
3231
'cmsName' => __(Statamic::pro() ? config('statamic.cp.custom_cms_name', 'Statamic') : 'Statamic'),
3332
'logos' => $this->logos(),
3433
'isCpRoute' => Statamic::isCpRoute(),

0 commit comments

Comments
 (0)