Skip to content

Commit

Permalink
fix: prevent possible error on embedded component disconnect (#20260) (
Browse files Browse the repository at this point in the history
…#20272)

Co-authored-by: Serhii Kulykov <[email protected]>
  • Loading branch information
vaadin-bot and web-padawan authored Oct 17, 2024
1 parent 324cc03 commit 835f6b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ _ThemeImport_class _TagCamel_ extends HTMLElement {
return Object.values(clients).find(client => client.exportedWebComponents && client.exportedWebComponents.indexOf('_TagDash_') != -1)
}
disconnectedCallback() {
this.$server.disconnected();
this.$server && this.$server.disconnected();

console.debug("disconnected", this);
}
Expand Down

0 comments on commit 835f6b6

Please sign in to comment.