From f85e02fb0aac0a78c57e0481c0123b8dfdcde18b Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 23 May 2023 16:59:45 +0200 Subject: [PATCH] empty results when opening addtaskmenu add when searching. --- Website/interaction.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Website/interaction.js b/Website/interaction.js index a2f9f8b..6985228 100644 --- a/Website/interaction.js +++ b/Website/interaction.js @@ -59,6 +59,7 @@ GetAvailableControllers() searchPublicationQuery.addEventListener("keypress", (event) => { if(event.key === "Enter"){ + selectPublication.replaceChildren(); GetPublication(connectorSelect.value, searchPublicationQuery.value) //.then(json => console.log(json)); .then(json => @@ -121,6 +122,7 @@ function ResetContent(){ } function ShowNewTaskWindow(){ + selectPublication.replaceChildren(); addtaskpopup.style.display = "block"; addtaskpopup.animate(fadeIn, fadeInTiming); }