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
  • Loading branch information
web-padawan authored Oct 17, 2024
1 parent c34fd15 commit f7f193a
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 f7f193a

Please sign in to comment.