@galacean/engine-ui 1.4.14 → 1.4.15

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/module.js CHANGED
@@ -1517,7 +1517,7 @@ var UICanvas = /*#__PURE__*/ function(Component) {
1517
1517
  set: function set(value) {
1518
1518
  var preCamera = this._renderCamera;
1519
1519
  if (preCamera !== value) {
1520
- this._isSameOrChildEntity(value.entity) && Logger.warn("Camera entity matching or nested within the canvas entity disables canvas auto-adaptation in ScreenSpaceCamera mode.");
1520
+ value && this._isSameOrChildEntity(value.entity) && Logger.warn("Camera entity matching or nested within the canvas entity disables canvas auto-adaptation in ScreenSpaceCamera mode.");
1521
1521
  this._renderCamera = value;
1522
1522
  this._updateCameraObserver();
1523
1523
  var preRenderMode = this._realRenderMode;