Issue #2 fix
All checks were successful
PDX Pecularities Server / deploy (push) Successful in 2s
All checks were successful
PDX Pecularities Server / deploy (push) Successful in 2s
This commit is contained in:
parent
24c91b7211
commit
40a0c40076
@ -22,7 +22,7 @@ const renderItems = (items) => {
|
|||||||
} else if (typeof item === 'object') {
|
} else if (typeof item === 'object') {
|
||||||
return `<p>${Object.entries(item).map(([key, value]) =>
|
return `<p>${Object.entries(item).map(([key, value]) =>
|
||||||
// `${value}`).join('<br>')}</p>`;
|
// `${value}`).join('<br>')}</p>`;
|
||||||
`<strong>${cap(key)}:</strong> ${value}`).join('<br>')}</p>`;
|
`<strong>${cap(key)}:</strong> ${Array.isArray(value) ? value.join(', ') : value}`).join('<br>')}</p>`;
|
||||||
} else {
|
} else {
|
||||||
return `<p>${String(item)}</p>`;
|
return `<p>${String(item)}</p>`;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user