Avoid creating many changesets by checking for resource equality

pull/8362/head
Oliver Günther 5 years ago
parent d0e3771e8c
commit be4ec16d4a
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 1
      frontend/src/app/modules/fields/edit/services/hal-resource-editing.service.ts

@ -191,7 +191,6 @@ export class HalResourceEditingService extends StateCacheService<ResourceChanges
return changeset;
}
if (!changeset ||
changeset.pristineResource !== resource ||
resource.hasOwnProperty('lockVersion') && changeset.pristineResource.lockVersion < resource.lockVersion) {
return this.edit<V, T>(resource);
}

Loading…
Cancel
Save