cat-qw-lib 0.31.9 → 0.32.0

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.
@@ -1292,6 +1292,9 @@ class BaseFormComponent {
1292
1292
  }
1293
1293
  handleUpdateRecord() {
1294
1294
  console.log('Submitting form...');
1295
+ console.log(this.record);
1296
+ if (!this.record._id)
1297
+ return;
1295
1298
  this.service.update(this.record._id, this.record).subscribe({
1296
1299
  next: (response) => {
1297
1300
  console.log('Record updated:', response);
@@ -1305,6 +1308,10 @@ class BaseFormComponent {
1305
1308
  });
1306
1309
  }
1307
1310
  handleAddRecord() {
1311
+ console.log('form submitted');
1312
+ console.log(this.record);
1313
+ if (!this.record)
1314
+ return;
1308
1315
  this.service.create(this.record).subscribe({
1309
1316
  next: (response) => {
1310
1317
  console.log('Record created:', response);