@trudb/tru-common-lib 0.2.345 → 0.2.347
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.
|
@@ -7747,7 +7747,6 @@ class TruDataGrid {
|
|
|
7747
7747
|
this.selectedUnassociatedChoice = undefined;
|
|
7748
7748
|
// add row to grid
|
|
7749
7749
|
this.unsavedEntities.push(enhancedEntity);
|
|
7750
|
-
this.api.applyTransaction({ add: [enhancedEntity], addIndex: 0 });
|
|
7751
7750
|
}
|
|
7752
7751
|
}
|
|
7753
7752
|
};
|
|
@@ -8153,7 +8152,7 @@ class TruDataGrid {
|
|
|
8153
8152
|
let fieldName = e.colDef.field;
|
|
8154
8153
|
let propertyConfig = e.data[fieldName];
|
|
8155
8154
|
let propertyPathParts = [];
|
|
8156
|
-
if (propertyConfig.
|
|
8155
|
+
if (propertyConfig?.propertyPath.includes('.')) {
|
|
8157
8156
|
propertyPathParts = this.getPropertyPathParts(propertyConfig.propertyPath);
|
|
8158
8157
|
}
|
|
8159
8158
|
let entityToValidate = propertyPathParts.length ? propertyPathParts.reduce((p, c) => p && p[c] || null, e.data.$entity) : e.data.$entity;
|