@processmaker/screen-builder 3.5.1 → 3.5.3

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.1",
3
+ "version": "3.5.3",
4
4
  "scripts": {
5
5
  "dev": "VITE_COVERAGE=true vite",
6
6
  "build": "vite build",
@@ -375,6 +375,7 @@ export default {
375
375
  break;
376
376
  case 'collection':
377
377
  this.showRenderAs = false;
378
+ this.renderAs = 'dropdown';
378
379
  this.jsonData = '';
379
380
  this.dataName = '';
380
381
  this.selectedDataSource = '';
@@ -401,14 +402,6 @@ export default {
401
402
  if (this.endPointList.length > 0) {
402
403
  this.selectedEndPoint = this.endPointList[0].value;
403
404
  }
404
- },
405
- renderAs(val) {
406
- if (this.dataSource === 'provideData') {
407
- if (val !== 'dropdown') {
408
- // add aria label field when renderAs is not dropdown
409
- this.optionsListExtra = this.optionsList.map(option => ({...option, [this.ariaLabelField]: ''}));
410
- }
411
- }
412
405
  }
413
406
  },
414
407
  computed: {
@@ -880,12 +880,19 @@ export default {
880
880
  this.loadingTask = true;
881
881
  // Check if interstitial tasks are allowed for this task.
882
882
  if (this.task && !(this.task.allow_interstitial || this.isSameUser(this.task, data))) {
883
- // The getDestinationUrl() function is called asynchronously to retrieve the URL
883
+ // The getDestinationUrl() function is called asynchronously to retrieve the URL
884
884
  window.location.href = await this.getDestinationUrl();
885
885
  return;
886
886
  }
887
887
  this.nodeId = data.params[0].nodeId;
888
888
  this.taskId = data.params[0].tokenId;
889
+
890
+ // Force a redirect to ensure the correct task is loaded immediately for ConversationalForm.
891
+ // This prevents async reloads that may cause inconsistencies specific to ConversationalForm.
892
+ if (this.renderComponent === "ConversationalForm") {
893
+ window.location.href = `/tasks/${this.taskId}/edit`;
894
+ }
895
+
889
896
  this.reload();
890
897
  }
891
898
  },