Skip to content

Commit 2828a4b

Browse files
committed
fix AssetManifestService error when loading the panel
1 parent cbcf620 commit 2828a4b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

app/Services/Helpers/AssetHashService.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class AssetHashService
1515

1616
private Filesystem $filesystem;
1717

18-
protected static mixed $manifest;
18+
protected static mixed $manifest = null;
1919

2020
/**
2121
* AssetHashService constructor.
@@ -99,9 +99,13 @@ public function js(string $resource): string
9999
*/
100100
protected function manifest(): array
101101
{
102-
return self::$manifest ?: self::$manifest = json_decode(
103-
$this->filesystem->get(self::MANIFEST_PATH),
104-
true
105-
);
102+
if (static::$manifest === null) {
103+
self::$manifest = json_decode(
104+
$this->filesystem->get(self::MANIFEST_PATH),
105+
true
106+
);
107+
}
108+
109+
return static::$manifest;
106110
}
107111
}

0 commit comments

Comments
 (0)