fix soundfonts + samples without base

This commit is contained in:
Felix Roos 2022-06-27 00:49:58 +02:00
parent 4e282dac5b
commit 720b1eeb27
2 changed files with 17 additions and 6 deletions

View file

@ -93,7 +93,7 @@ export const loadGithubSamples = async (path, nameFn) => {
*
*/
export const samples = (sampleMap, baseUrl = sampleMap._base) => {
export const samples = (sampleMap, baseUrl = sampleMap._base || '') => {
sampleCache.current = {
...sampleCache.current,
...Object.fromEntries(