Skip to content

Commit

Permalink
Merge pull request #417 from boostcampwm-2024/bug-fe-#416
Browse files Browse the repository at this point in the history
초기 사이트 접속 시 에디터 소켓 접속하는 문제 해결
  • Loading branch information
github-actions[bot] authored Dec 21, 2024
2 parents cffe362 + 326819b commit 15781ae
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export const useEdtorConnection = (currentPage: number | null) => {
editor.provider.destroy();
}

if (currentPage === null) return;

setConnectionStatus("editor", "connecting");

const provider = createSocketIOProvider(
Expand Down

0 comments on commit 15781ae

Please sign in to comment.