@processmaker/modeler 1.42.0 → 1.42.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processmaker/modeler",
3
- "version": "1.42.0",
3
+ "version": "1.42.2",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve --mode development",
6
6
  "test:unit": "vue-cli-service test:unit",
@@ -632,7 +632,7 @@ export default {
632
632
  */
633
633
  getConnectedLinkProperties(links) {
634
634
  let changed = [];
635
- links.forEach((linkView) => {
635
+ links?.forEach((linkView) => {
636
636
  const vertices = linkView.model.component.shape.vertices();
637
637
  if (vertices?.length) {
638
638
  const waypoint = [];
@@ -719,7 +719,7 @@ export default {
719
719
  * Selector will update the waypoints of the related flows
720
720
  */
721
721
  updateFlowsWaypoint(){
722
- this.connectedLinks.forEach((link)=> {
722
+ this.connectedLinks?.forEach((link)=> {
723
723
  if (link.model.component && link.model.get('type') === 'standard.Link'){
724
724
  const start = link.sourceAnchor;
725
725
  const end = link.targetAnchor;
@@ -1,12 +1,11 @@
1
1
  import component from './boundaryTimerEvent.vue';
2
2
  import IntermediateTimer from '../../inspectors/IntermediateTimer.vue';
3
3
  import boundaryEventConfig from '../boundaryEvent';
4
- import merge from 'lodash/merge';
5
- import cloneDeep from 'lodash/cloneDeep';
6
4
  import interruptingToggleConfig from '../boundaryEvent/interruptingToggleInspector';
7
5
  import advancedAccordionConfig from '@/components/inspectors/advancedAccordionConfig';
8
6
  import documentationAccordionConfig from '@/components/inspectors/documentationAccordionConfig';
9
7
  import { defaultDurationTimerEvent } from '@/constants';
8
+ import { omit, cloneDeep, merge } from 'lodash';
10
9
 
11
10
  export const id = 'processmaker-modeler-boundary-timer-event';
12
11
 
@@ -42,7 +41,7 @@ export default merge(cloneDeep(boundaryEventConfig), {
42
41
  inspectorData(node) {
43
42
  return Object.entries(node.definition).reduce((data, [key, value]) => {
44
43
  if (key === 'eventDefinitions') {
45
- const type = Object.keys(value[0])[1];
44
+ const type = Object.keys(omit(value[0], ['id', '$type', 'get', 'set', '$instanceOf']))[0];
46
45
  const body = value[0][type].body;
47
46
  data[key] = { type, body };
48
47
  } else {