@processmaker/screen-builder 3.5.6 → 3.5.7

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": "3.5.6",
3
+ "version": "3.5.7",
4
4
  "scripts": {
5
5
  "dev": "VITE_COVERAGE=true vite",
6
6
  "build": "vite build",
@@ -472,7 +472,6 @@ export default {
472
472
  editIndex: this.editIndex,
473
473
  removeIndex: this.removeIndex,
474
474
  valueTypeReturned: this.valueTypeReturned,
475
- optionAriaLabel: this.optionAriaLabel,
476
475
  };
477
476
  },
478
477
  },
@@ -490,7 +489,6 @@ export default {
490
489
  this.selectedEndPoint = this.options.selectedEndPoint,
491
490
  this.key = this.options.key;
492
491
  this.value = this.options.value;
493
- this.optionAriaLabel = this.options.ariaLabel;
494
492
  this.pmqlQuery = this.options.pmqlQuery;
495
493
  this.defaultOptionKey= this.options.defaultOptionKey;
496
494
  this.selectedOptions = this.options.selectedOptions;
@@ -593,8 +591,11 @@ export default {
593
591
  this.editIndex = index;
594
592
  this.optionContent = this.optionsList[index][this.valueField];
595
593
  this.optionValue = this.optionsList[index][this.keyField];
594
+ this.optionAriaLabel = "";
596
595
  if (this.renderAs === "checkbox") {
597
- this.optionAriaLabel = this.optionsListExtra[index][this.ariaLabelField];
596
+ this.optionAriaLabel = this.optionsListExtra[index]
597
+ ? this.optionsListExtra[index][this.ariaLabelField]
598
+ : "";
598
599
  }
599
600
  this.optionError = '';
600
601
  },
@@ -850,6 +850,10 @@ export default {
850
850
  * @param {Object} data - The event data received from the socket listener.
851
851
  */
852
852
  handleRedirect(data) {
853
+ // Validate if the task is still active before redirects
854
+ if (data.params?.activeTokens?.includes(this.taskId)) {
855
+ return;
856
+ }
853
857
  switch (data.method) {
854
858
  case 'redirectToTask':
855
859
  this.handleRedirectToTask(data);