diff --git a/application/add_meal_v2/templates/scan_barcode_v2.html b/application/add_meal_v2/templates/scan_barcode_v2.html index dd6655d..fec70c6 100644 --- a/application/add_meal_v2/templates/scan_barcode_v2.html +++ b/application/add_meal_v2/templates/scan_barcode_v2.html @@ -58,7 +58,7 @@ return; } - fetch(`{{url_for("add_meal.query")}}?q=${encodeURIComponent(query)}`) + fetch(`{{url_for("add_meal_v2.query")}}?q=${encodeURIComponent(query)}`) .then(response => response.json()) .then(data => { suggestionsBox.innerHTML = '';