Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
dni committed Oct 23, 2024
1 parent efb84f5 commit 99e6b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/invoices/display.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
<script>
const paymentsString = {{ invoice_payments | tojson | safe }}
const itemString = {{ invoice_items | tojson | safe }}
const invoice = JSON.parse('{{ invoice | safe }}')
const invoice = JSON.parse({{ invoice | tojson | safe }})
const invoiceItems = itemString.map(JSON.parse) || []
const invoice_total = parseInt('{{ invoice_total }}')
const invoicePayments = paymentsString.map(JSON.parse) || []
Expand Down

0 comments on commit 99e6b80

Please sign in to comment.