Skip to content

Commit 440fedc

Browse files
committed
fix: updates for PR review
1 parent 1777ca9 commit 440fedc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

site/src/pages/CreateWorkspacePage/CreateWorkspacePageExperimental.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ const CreateWorkspacePageExperimental: FC = () => {
9696
return;
9797
}
9898

99-
if (ws.current) {
100-
ws.current.close();
101-
}
102-
10399
const socket = API.templateVersionDynamicParameters(realizedVersionId, {
104100
onMessage,
105101
onError: (error) => {
@@ -110,9 +106,7 @@ const CreateWorkspacePageExperimental: FC = () => {
110106
ws.current = socket;
111107

112108
return () => {
113-
if (ws.current) {
114-
ws.current.close();
115-
}
109+
socket.close();
116110
};
117111
}, [realizedVersionId, onMessage]);
118112

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy