@processmaker/modeler 1.42.1 → 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.1",
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",
@@ -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 {