Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix portal teardown (#2370)

David Luzar68aafe31f9c0
diff --git a/src/components/Portal.tsx b/src/components/Portal.tsx
index d135bc2ad8..57d72648c7 100644
--- a/src/components/Portal.tsx
+++ b/src/components/Portal.tsx
@@ -49,6 +49,8 @@ class Portal {
this.socket = null;
this.roomID = null;
this.roomKey = null;
+ this.socketInitialized = false;
+ this.broadcastedElementVersions = new Map();
}
isOpen() {