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