fix single sampels

This commit is contained in:
Felix Roos 2022-06-27 00:26:21 +02:00
parent e98829c96b
commit 42343254b1

View File

@ -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);