cmat 0.0.35 → 0.0.36
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.
|
@@ -1415,13 +1415,13 @@ class CmatUploadTypeComponent extends FieldType {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
upload(id) {
|
|
1417
1417
|
var rootValue = this.baseGroup.get('uploadId')?.value;
|
|
1418
|
-
if (rootValue) {
|
|
1418
|
+
if (rootValue && !isNil(id)) {
|
|
1419
1419
|
this.baseGroup.get('uploadId')?.setValue([id, ...rootValue]);
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
1422
|
remove(id) {
|
|
1423
1423
|
var rootValue = this.baseGroup.get('removeId')?.value;
|
|
1424
|
-
if (rootValue) {
|
|
1424
|
+
if (rootValue && !isNil(id)) {
|
|
1425
1425
|
this.baseGroup.get('removeId')?.setValue([id, ...rootValue]);
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
@@ -1561,7 +1561,7 @@ class CmatQuillTypeComponent extends FieldType {
|
|
|
1561
1561
|
});
|
|
1562
1562
|
this._imgIds.forEach((i) => {
|
|
1563
1563
|
var rootValue = this.baseGroup.get('removeId')?.value;
|
|
1564
|
-
if (rootValue) {
|
|
1564
|
+
if (rootValue && !isNil(i)) {
|
|
1565
1565
|
this.baseGroup.get('removeId')?.setValue([i, ...rootValue]);
|
|
1566
1566
|
}
|
|
1567
1567
|
});
|
|
@@ -1578,7 +1578,7 @@ class CmatQuillTypeComponent extends FieldType {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
_upload(id) {
|
|
1580
1580
|
var rootValue = this.baseGroup.get('uploadId')?.value;
|
|
1581
|
-
if (rootValue) {
|
|
1581
|
+
if (rootValue && !isNil(id)) {
|
|
1582
1582
|
this.baseGroup.get('uploadId')?.setValue([id, ...rootValue]);
|
|
1583
1583
|
}
|
|
1584
1584
|
}
|