Modified how template list is generated to be a function to allow checking whether the templates can be printed.
This commit is contained in:
@@ -70,8 +70,8 @@ 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}, `;
|
||||
if (idx === templates.length - 1) return TemplateList()[template].title;
|
||||
return `${TemplateList()[template].title}, `;
|
||||
})}
|
||||
</span>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user