ngx-render-material-forms 1.3.8 → 1.3.9

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.
@@ -3024,7 +3024,7 @@ class MaterialDataGridComponent extends MaterialNestedComponent {
3024
3024
  removeRow(index) {
3025
3025
  let message = 'Are you sure you want to delete the first product?';
3026
3026
  let showButton = true;
3027
- if (index === 0) {
3027
+ if (this.dataSource?.data?.length === 1) {
3028
3028
  message = 'Please select atleast one product.';
3029
3029
  showButton = false;
3030
3030
  }