@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.
- package/dist/index.js +3 -0
- 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
|
};
|