Modified how template list is generated to be a function to allow checking whether the templates can be printed.
This commit is contained in:
@@ -123,7 +123,7 @@ function InvoiceEnterModalContainer({
|
||||
replyTo: bodyshop.email,
|
||||
},
|
||||
template: {
|
||||
name: TemplateList.payment_receipt.key,
|
||||
name: TemplateList().payment_receipt.key,
|
||||
variables: {
|
||||
id: newPayment.data.insert_payments.returning[0].id,
|
||||
},
|
||||
@@ -133,7 +133,7 @@ function InvoiceEnterModalContainer({
|
||||
displayTemplateInWindow(
|
||||
await RenderTemplate(
|
||||
{
|
||||
name: TemplateList.payment_receipt.key,
|
||||
name: TemplateList().payment_receipt.key,
|
||||
variables: {
|
||||
id: newPayment.data.insert_payments.returning[0].id,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user