mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 14:26:58 -04:00
fix single sampels
This commit is contained in:
@@ -99,7 +99,7 @@ export const samples = (sampleMap, baseUrl = sampleMap._base) => {
|
||||
...Object.fromEntries(
|
||||
Object.entries(sampleMap).map(([key, value]) => {
|
||||
if (typeof value === 'string') {
|
||||
return [key, [value]];
|
||||
value = [value];
|
||||
}
|
||||
if (typeof value !== 'object') {
|
||||
throw new Error('wrong sample map format for ' + key);
|
||||
|
||||
Reference in New Issue
Block a user