@lvce-editor/virtual-dom 6.9.0 → 6.10.0

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -676,6 +676,9 @@ const renderDomElement = (element, eventMap, newEventMap) => {
676
676
  };
677
677
  const renderReferenceNode = element => {
678
678
  const instance = get$1(element.uid);
679
+ if (!instance || !instance.state) {
680
+ return document.createTextNode('Reference node not found');
681
+ }
679
682
  const $Node = instance.state.$Viewlet;
680
683
  return $Node;
681
684
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/virtual-dom",
3
- "version": "6.9.0",
3
+ "version": "6.10.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lvce-editor/virtual-dom.git"