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.
- package/esm2020/lib/components/datagrid/datagrid.component.mjs +2 -2
- package/fesm2015/ngx-render-material-forms.js +2 -1
- package/fesm2015/ngx-render-material-forms.mjs.map +1 -1
- package/fesm2020/ngx-render-material-forms.js +1 -1
- package/fesm2020/ngx-render-material-forms.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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 (
|
|
3027
|
+
if (this.dataSource?.data?.length === 1) {
|
|
3028
3028
|
message = 'Please select atleast one product.';
|
|
3029
3029
|
showButton = false;
|
|
3030
3030
|
}
|