@sankhyalabs/core 7.1.0-dev.11 → 7.1.0-dev.13
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/.docs/classes/DataUnit.md +63 -63
- package/dist/dataunit/DataUnit.js +4 -1
- package/dist/dataunit/DataUnit.js.map +1 -1
- package/package.json +1 -1
- package/reports/test-report.xml +329 -329
- package/src/dataunit/DataUnit.ts +3 -1
package/src/dataunit/DataUnit.ts
CHANGED
|
@@ -1066,7 +1066,9 @@ export default class DataUnit {
|
|
|
1066
1066
|
if (noRecordSelected) await this.addRecord();
|
|
1067
1067
|
|
|
1068
1068
|
const typedValue = this.validateAndTypeValue(fieldName, newValue);
|
|
1069
|
-
const currentValue =
|
|
1069
|
+
const currentValue = records?.length === 1
|
|
1070
|
+
? (this.records.find(r => r.__record__id__ === records[0])?.[fieldName] ?? this.getFieldValue(fieldName))
|
|
1071
|
+
: this.getFieldValue(fieldName);
|
|
1070
1072
|
|
|
1071
1073
|
if (this.areEquivalentValues(newValue, currentValue, typedValue)) {
|
|
1072
1074
|
return Promise.resolve(false);
|