Skip to content

Commit

Permalink
fix: prevent possible error on embedded component disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Oct 16, 2024
1 parent 1937249 commit 7405061
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 7405061

Please sign in to comment.