mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-14 15:18:33 +00:00
fix single sampels
This commit is contained in:
parent
e98829c96b
commit
42343254b1
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user