refactor prebake

This commit is contained in:
Felix Roos 2022-11-02 21:07:47 +01:00
parent cf7c734778
commit d8843e6057
2 changed files with 5 additions and 11 deletions

View file

@ -107,7 +107,7 @@ export const samples = async (sampleMap, baseUrl = sampleMap._base || '') => {
const base = sampleMap.split('/').slice(0, -1).join('/');
return fetch(sampleMap)
.then((res) => res.json())
.then((json) => samples(json, json._base || base));
.then((json) => samples(json, baseUrl || json._base || base));
}
sampleCache.current = {
...sampleCache.current,