Fixed a smal error in the document generation button of the costum document creation section

This commit is contained in:
2026-01-12 18:37:39 +01:00
parent 60b9f8a3b9
commit bef9c44a2f
+2 -1
View File
@@ -312,9 +312,10 @@ goBackBtn.addEventListener("click", () => {
// dokumente speichern
generateBtn.addEventListener("click", () => {
const name = docName.value.trim();
const content = prompt.value.trim();
const content = document.getElementById("prompt").value.trim();
if (!name || !content) {
result.textContent = "Bitte Dokumentname und Prompt ausfüllen.";
console.log(name + " " + content);
setTimeout(() => {
result.textContent = "";
}, 3000);