refactor prebake
This commit is contained in:
parent
cf7c734778
commit
d8843e6057
2 changed files with 5 additions and 11 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue