From 300520174b19bf7d86ac3a0251ebc1be43217f35 Mon Sep 17 00:00:00 2001
From: Furkan Sahin <furkan-dev@proton.me>
Date: Tue, 31 May 2022 23:16:41 -0500
Subject: self-assign incase a PT gets deleted, selected_pt's available labs
 will be updated instantly!

---
 src/components/EditorLists.svelte | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src/components/EditorLists.svelte')

diff --git a/src/components/EditorLists.svelte b/src/components/EditorLists.svelte
index f68f955..d31a427 100644
--- a/src/components/EditorLists.svelte
+++ b/src/components/EditorLists.svelte
@@ -53,6 +53,9 @@
       map.delete(id);
       return map;
     });
+    
+    // Self assignemnt to update `assignedLabs` and `compatibleLabs`
+    selectedPeerTeacher = selectedPeerTeacher;
   }
 
   function assignLab(id: number) {
-- 
cgit v1.2.3

