ngx-material-entity 15.2.7 → 15.2.8

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.
@@ -1150,17 +1150,19 @@ class EntityUtilities {
1150
1150
  const res = [];
1151
1151
  for (const key of ReflectUtilities.ownKeys(entity)) {
1152
1152
  const metadata = EntityUtilities.getPropertyMetadata(entity, key);
1153
- const type = EntityUtilities.getPropertyType(entity, key);
1154
- if (!(await EntityUtilities.isEqual(entity[key], entityPriorChanges[key], metadata, type))) {
1155
- res.push({
1156
- key: key,
1157
- before: entityPriorChanges[key],
1158
- after: entity[key]
1159
- });
1160
- }
1161
- else {
1162
- // This is needed to set blob file data so that it is only requested once.
1163
- entityPriorChanges[key] = LodashUtilities.cloneDeep(entity[key]);
1153
+ if (!metadata.isReadOnly(entity)) {
1154
+ const type = EntityUtilities.getPropertyType(entity, key);
1155
+ if (!(await EntityUtilities.isEqual(entity[key], entityPriorChanges[key], metadata, type))) {
1156
+ res.push({
1157
+ key: key,
1158
+ before: entityPriorChanges[key],
1159
+ after: entity[key]
1160
+ });
1161
+ }
1162
+ else {
1163
+ // This is needed to set blob file data so that it is only requested once.
1164
+ entityPriorChanges[key] = LodashUtilities.cloneDeep(entity[key]);
1165
+ }
1164
1166
  }
1165
1167
  }
1166
1168
  return res;