@embeddable.com/sdk-core 4.1.9-next.0 → 4.1.9-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-core",
3
- "version": "4.1.9-next.0",
3
+ "version": "4.1.9-next.2",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
@@ -30,6 +30,7 @@ export class EmbeddableComponent {
30
30
 
31
31
  @Watch('theme')
32
32
  watchTheme() {
33
+ if (!this.rootElement) return;
33
34
  const eventClientContext = new CustomEvent('embeddable-event:update-theme', {
34
35
  bubbles: false,
35
36
  detail: this.theme,
@@ -106,10 +107,11 @@ export class EmbeddableComponent {
106
107
  }
107
108
 
108
109
  private handlePops() {
110
+ const props = JSON.parse(this.props);
109
111
  render(
110
112
  this.rootElement,
111
113
  this.componentName,
112
- JSON.parse(this.props),
114
+ props,
113
115
  JSON.parse(this.clientContext),
114
116
  this.theme
115
117
  );