Updated Print Center & TemplateList Object IO-587
This commit is contained in:
@@ -66,14 +66,18 @@ export function PrintCenterSpeedPrint({ bodyshop, jobId }) {
|
||||
);
|
||||
}
|
||||
|
||||
const renderTemplateList = (templates) => (
|
||||
<span className="imex-flex-row__margin">
|
||||
{templates.map((template, idx) => {
|
||||
if (idx === templates.length - 1) return TemplateList()[template].title;
|
||||
return `${TemplateList()[template].title}, `;
|
||||
})}
|
||||
</span>
|
||||
);
|
||||
const renderTemplateList = (templates) => {
|
||||
const TemplateListGenerated = TemplateList();
|
||||
return (
|
||||
<span className="imex-flex-row__margin">
|
||||
{templates.map((template, idx) => {
|
||||
if (idx === templates.length - 1)
|
||||
return TemplateListGenerated[template].title;
|
||||
return `${TemplateListGenerated[template].title}, `;
|
||||
})}
|
||||
</span>
|
||||
);
|
||||
};
|
||||
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
|
||||
Reference in New Issue
Block a user