Modified how template list is generated to be a function to allow checking whether the templates can be printed.
This commit is contained in:
@@ -130,10 +130,10 @@ export default function ShopInfoIntakeChecklistComponent({ form }) {
|
||||
<Select mode="multiple">
|
||||
{Object.keys(TemplateList).map((i) => (
|
||||
<Select.Option
|
||||
key={TemplateList[i].key}
|
||||
value={TemplateList[i].key}
|
||||
key={TemplateList()[i].key}
|
||||
value={TemplateList()[i].key}
|
||||
>
|
||||
{TemplateList[i].title}
|
||||
{TemplateList()[i].title}
|
||||
</Select.Option>
|
||||
))}
|
||||
</Select>
|
||||
@@ -252,10 +252,10 @@ export default function ShopInfoIntakeChecklistComponent({ form }) {
|
||||
<Select mode="multiple">
|
||||
{Object.keys(TemplateList).map((i) => (
|
||||
<Select.Option
|
||||
key={TemplateList[i].key}
|
||||
value={TemplateList[i].key}
|
||||
key={TemplateList()[i].key}
|
||||
value={TemplateList()[i].key}
|
||||
>
|
||||
{TemplateList[i].title}
|
||||
{TemplateList()[i].title}
|
||||
</Select.Option>
|
||||
))}
|
||||
</Select>
|
||||
|
||||
Reference in New Issue
Block a user