@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.
@@ -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 = this.getFieldValue(fieldName);
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);