fix: ReferenceError projekt_id typo in app.js
Deploy Bürgerwind / deploy (push) Successful in 16s
Details
Deploy Bürgerwind / deploy (push) Successful in 16s
Details
This commit is contained in:
parent
5ad4cd1344
commit
c6642c25fc
8
app.js
8
app.js
|
|
@ -1423,7 +1423,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
|||
const statusEl = document.getElementById('statusInfo');
|
||||
statusEl.innerText = "Speichere in Datenbank...";
|
||||
|
||||
const project_id = "BWSamern-Ohne"; // Could be dynamic from config
|
||||
const projekt_id = "BWSamern-Ohne"; // Could be dynamic from config
|
||||
const turbineData = state.turbines.map(t => ({
|
||||
nr: t.nr,
|
||||
variant: t.variant,
|
||||
|
|
@ -1454,11 +1454,11 @@ document.addEventListener('DOMContentLoaded', async () => {
|
|||
}
|
||||
|
||||
async function loadTurbinesFromDB() {
|
||||
const project_id = "BWSamern-Ohne";
|
||||
const projekt_id = "BWSamern-Ohne";
|
||||
const statusEl = document.getElementById('statusInfo');
|
||||
console.log(`Lade WEAs aus Datenbank für Projekt: ${project_id}...`);
|
||||
console.log(`Lade WEAs aus Datenbank für Projekt: ${projekt_id}...`);
|
||||
try {
|
||||
const response = await fetch(`/api/wea/${project_id}`);
|
||||
const response = await fetch(`/api/wea/${projekt_id}`);
|
||||
if (response.ok) {
|
||||
const dbTurbines = await response.json();
|
||||
console.log(`Datenbank-Response: ${dbTurbines.length} WEAs erhalten.`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue