Update templates/index.html
Browse files- templates/index.html +1 -1
templates/index.html
CHANGED
|
@@ -401,7 +401,7 @@
|
|
| 401 |
|
| 402 |
<!-- Server-side data passed via data attributes — keeps <script> Jinja-free -->
|
| 403 |
<div id="appData"
|
| 404 |
-
data-crop-to-pests=
|
| 405 |
data-init-crop="{{ selected_crop | e }}"
|
| 406 |
data-init-pest="{{ selected_pest | e }}"
|
| 407 |
data-init-year="{{ selected_year | e }}"
|
|
|
|
| 401 |
|
| 402 |
<!-- Server-side data passed via data attributes — keeps <script> Jinja-free -->
|
| 403 |
<div id="appData"
|
| 404 |
+
data-crop-to-pests='{{ crop_to_pests | tojson }}'
|
| 405 |
data-init-crop="{{ selected_crop | e }}"
|
| 406 |
data-init-pest="{{ selected_pest | e }}"
|
| 407 |
data-init-year="{{ selected_year | e }}"
|