@processmaker/screen-builder 3.8.20 → 3.8.22-patch-a

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.
@@ -55135,7 +55135,12 @@ const Bie = () => new Promise((t) => {
55135
55135
  * @param {Object} data - The event data received from the socket listener.
55136
55136
  */
55137
55137
  handleProcessUpdate(t) {
55138
- t.event === "ACTIVITY_EXCEPTION" && (this.$emit("error", this.requestId), window.location.href = `/requests/${this.requestId}`);
55138
+ if (!this.task) {
55139
+ this.reload();
55140
+ return;
55141
+ }
55142
+ const { event: e, elementDestination: r, tokenId: i } = t;
55143
+ e === "ACTIVITY_COMPLETED" && this.task.id === i && r && (this.task.elementDestination = r, this.task.allow_interstitial = r.type === "displayNextAssignedTask"), e === "ACTIVITY_EXCEPTION" && (this.$emit("error", this.requestId), window.location.href = `/requests/${this.requestId}`);
55139
55144
  },
55140
55145
  /**
55141
55146
  * Adds a socket listener for redirect events.
@@ -55183,8 +55188,8 @@ const Bie = () => new Promise((t) => {
55183
55188
  * @param {Object} data - The event data containing the tokenId of the task.
55184
55189
  */
55185
55190
  async handleRedirectToTask(t) {
55186
- var e;
55187
- if ((e = t == null ? void 0 : t.params[0]) != null && e.tokenId) {
55191
+ var e, r, i, a;
55192
+ if ((e = t == null ? void 0 : t.params[0]) != null && e.tokenId && ((r = this.task.user) == null ? void 0 : r.id) === ((i = t.params[0]) == null ? void 0 : i.userId) || ((a = this.task.elementDestination) == null ? void 0 : a.type) === "taskSource") {
55188
55193
  if (this.loadingTask = !0, this.task && !(this.task.allow_interstitial || this.isSameUser(this.task, t))) {
55189
55194
  window.location.href = await this.getDestinationUrl();
55190
55195
  return;
@@ -55309,7 +55314,7 @@ var Hie = function() {
55309
55314
  Vie,
55310
55315
  !1,
55311
55316
  null,
55312
- "1e376439",
55317
+ "b8b1823e",
55313
55318
  null,
55314
55319
  null
55315
55320
  );