Prevent newline characters from breaking part page rendering (#3242)

This commit is contained in:
Oliver authored and GitHub committed 2022-06-23 13:49:48 +10:00
1 parent b247aa6062
commit 782ba5693a
1 file changed
+1 -1
+1 -1
View File
@@ -950,7 +950,7 @@
{% if bom_parts %}
var bom_colors = randomColor({hue: 'green', count: {{ bom_parts|length }} })
var bomdata = {
labels: [{% for line in bom_parts %}'{{ line.name }}',{% endfor %}],
labels: [{% for line in bom_parts %}'{{ line.name|escapejs }}',{% endfor %}],
datasets: [
{
label: 'Price',