@gravitee/ui-policy-studio-angular 13.12.0 → 13.12.1-13-x-fix-4e5ebb1

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.
@@ -917,8 +917,10 @@ class GioPolicyStudioFlowsMenuComponent {
917
917
  throw new Error(`Flow ${flowId} not found`);
918
918
  }
919
919
  const duplicatedFlow = cloneDeep(flowToDuplicate);
920
+ delete duplicatedFlow.id;
920
921
  duplicatedFlow._id = uniqueId('flow_');
921
922
  duplicatedFlow.name = `${duplicatedFlow.name} - Copy`;
923
+ duplicatedFlow._hasChanged = true;
922
924
  const index = flowsGroupToEdit.flows.indexOf(flowToDuplicate);
923
925
  flowsGroupToEdit.flows.splice(index + 1, 0, duplicatedFlow);
924
926
  this.flowsGroupsChange.emit(this.flowsGroups);