From 61025a7d143a05a7e19d773415058e498a773455 Mon Sep 17 00:00:00 2001
From: Max <m.giller@tu-bs.de>
Date: Mon, 31 Jan 2022 00:13:51 +0100
Subject: [PATCH] Clearing space selection after listing

---
 editor/js/interactions.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/editor/js/interactions.js b/editor/js/interactions.js
index ab721f0..a58d0b6 100644
--- a/editor/js/interactions.js
+++ b/editor/js/interactions.js
@@ -18,6 +18,7 @@ export function initInteractions() {
 function loadSpacesList() {
     // Fill space dropdown
     var selectContainer = jQuery("#space-id-select");
+    selectContainer.empty();
     listAllSpaces().then((spaces) => {
         Object.keys(spaces).forEach(space_id => {
             var selectedTxt = "";
-- 
GitLab