@recursyve/nice-ui-kit.v2 13.2.0-beta.118 → 13.2.0-beta.119

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.
@@ -1758,12 +1758,13 @@ class NiceAssetsCarouselComponent {
1758
1758
  }
1759
1759
  writeValue(assets) {
1760
1760
  this._assets = assets ?? [];
1761
- if (this._assets?.length) {
1762
- this._activeAsset = this._assets[this._active];
1763
- }
1764
- else {
1761
+ if (this._assets.length === 0) {
1762
+ this._activeAsset = null;
1765
1763
  this._lastAsset = true;
1766
1764
  }
1765
+ else if (this._assets.length > 0) {
1766
+ this._activeAsset = this._assets[this._active];
1767
+ }
1767
1768
  }
1768
1769
  registerOnChange(fn) {
1769
1770
  this.propagate = fn;