@abp/ng.theme.shared 9.3.0 → 9.3.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.
@@ -2398,7 +2398,7 @@ class LoadingDirective {
2398
2398
  ngOnInit() {
2399
2399
  if (!this.targetElement) {
2400
2400
  const { offsetHeight, offsetWidth } = this.elRef.nativeElement;
2401
- if (!offsetHeight && !offsetWidth && this.elRef.nativeElement.children.length) {
2401
+ if (!offsetHeight && !offsetWidth && this.elRef.nativeElement.children?.length) {
2402
2402
  this.targetElement = this.elRef.nativeElement.children[0];
2403
2403
  }
2404
2404
  else {