Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 37687f3

Browse files
fix: if access /editor with prerendering el might be not created/attached yet even in destroy
1 parent f366ae2 commit 37687f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

studio/src/app/handlers/editor/events/remote/remote-events.handler.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ export class RemoteEventsHandler {
4242
}
4343

4444
async destroy() {
45+
if (!this.el) {
46+
return;
47+
}
48+
4549
await this.disconnect();
4650

4751
if (this.destroyConnectListener) {

0 commit comments

Comments
 (0)