@lenne.tech/ng-base 14.2.0 → 14.2.1

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.
@@ -1177,9 +1177,10 @@ class ModelFormComponent {
1177
1177
  * It sends a GraphQL mutation to the server to duplicate the object
1178
1178
  */
1179
1179
  async duplicateObject() {
1180
- this.cmsService.duplicateObject(this.id, this.modelName).then((value) => {
1180
+ this.cmsService.duplicateObject(this.id, this.modelName).then(async (value) => {
1181
1181
  if (value?.id) {
1182
- this.router.navigate(['../' + value.id], { relativeTo: this.route });
1182
+ await this.router.navigate(['../' + value.id], { relativeTo: this.route });
1183
+ this.init();
1183
1184
  }
1184
1185
  else {
1185
1186
  this.finished.emit(null);