Oops, fix crash for empty manifests!
Lol whoops I goofed up what happens when there's no manifest! Ooops
This commit is contained in:
parent
d98a533dce
commit
571b064fb5
1 changed files with 2 additions and 3 deletions
|
@ -407,9 +407,8 @@ async function loadAndCacheAssetDataFromManifest(db, layer) {
|
|||
manifest = await loadAndCacheAssetManifest(db, layer);
|
||||
}
|
||||
|
||||
// If we have an empty copy of the manifest ("" means 404 etc, or it can be
|
||||
// actually empty), return empty data.
|
||||
if (manifest === "" && manifest.assets.length !== 1) {
|
||||
// If we have an empty copy of the manifest, return empty data.
|
||||
if (!manifest || manifest.assets.length !== 1) {
|
||||
return { format: null, assetUrls: [] };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue