mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-04 17:35:21 +00:00
Prevent newline characters from breaking part page rendering (#3242)
This commit is contained in:
1 parent
b247aa6062
commit
782ba5693a
1 file changed
+1
-1
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user