fix AssetManifestService error when loading the panel
This commit is contained in:
parent
cbcf62086f
commit
2828a4b1e0
1 changed files with 9 additions and 5 deletions
|
@ -15,7 +15,7 @@ class AssetHashService
|
|||
|
||||
private Filesystem $filesystem;
|
||||
|
||||
protected static mixed $manifest;
|
||||
protected static mixed $manifest = null;
|
||||
|
||||
/**
|
||||
* AssetHashService constructor.
|
||||
|
@ -99,9 +99,13 @@ class AssetHashService
|
|||
*/
|
||||
protected function manifest(): array
|
||||
{
|
||||
return self::$manifest ?: self::$manifest = json_decode(
|
||||
$this->filesystem->get(self::MANIFEST_PATH),
|
||||
true
|
||||
);
|
||||
if (static::$manifest === null) {
|
||||
self::$manifest = json_decode(
|
||||
$this->filesystem->get(self::MANIFEST_PATH),
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
return static::$manifest;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue