allow _base prop for samples loader
This commit is contained in:
parent
ecd93c9a92
commit
ad62ccd8c7
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ export const loadGithubSamples = async (path, nameFn) => {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const samples = (sampleMap, baseUrl = '') => {
|
export const samples = (sampleMap, baseUrl = sampleMap._base) => {
|
||||||
sampleCache.current = {
|
sampleCache.current = {
|
||||||
...sampleCache.current,
|
...sampleCache.current,
|
||||||
...Object.fromEntries(
|
...Object.fromEntries(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue