fix single sampels
This commit is contained in:
parent
e98829c96b
commit
42343254b1
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue