@processmaker/screen-builder 2.93.0 → 2.94.0

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/screen-builder",
3
- "version": "2.93.0",
3
+ "version": "2.94.0",
4
4
  "scripts": {
5
5
  "dev": "VITE_COVERAGE=true vite",
6
6
  "build": "vite build",
@@ -102,6 +102,7 @@ export default {
102
102
  loading: { type: Number, default: null },
103
103
  alwaysAllowEditing: { type: Boolean, default: false },
104
104
  disableInterstitial: { type: Boolean, default: false },
105
+ waitLoadingListeners: { type: Boolean, default: false },
105
106
  },
106
107
  data() {
107
108
  return {
@@ -122,7 +123,7 @@ export default {
122
123
  redirecting: null,
123
124
  loadingButton: false,
124
125
  loadingTask: false,
125
- loadingListeners: true,
126
+ loadingListeners: this.waitLoadingListeners,
126
127
  };
127
128
  },
128
129
  watch: {
@@ -258,6 +259,10 @@ export default {
258
259
  }
259
260
  },
260
261
  loadTask() {
262
+ if (!this.taskId) {
263
+ return;
264
+ }
265
+
261
266
  const url = `/${this.taskId}?include=data,user,draft,requestor,processRequest,component,screen,requestData,loopContext,bpmnTagName,interstitial,definition,nested,userRequestPermission,elementDestination`;
262
267
  // For Vocabularies
263
268
  if (window.ProcessMaker && window.ProcessMaker.packages && window.ProcessMaker.packages.includes('package-vocabularies')) {
@@ -412,7 +417,7 @@ export default {
412
417
  * Emits a closed event.
413
418
  */
414
419
  async emitClosedEvent() {
415
- this.$emit("closed", this.task.id, await this.getDestinationUrl());
420
+ this.$emit("closed", this.task?.id, await this.getDestinationUrl());
416
421
  },
417
422
  /**
418
423
  * Retrieves the destination URL for the closed event.