@hmcts/ccd-case-ui-toolkit 4.13.8-event-start-tasks-not-required → 4.13.8-event-start-tasks-array-fix

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/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @hmcts/ccd-case-ui-toolkit - Case UI Toolkit
3
- * @version v4.13.8-event-start-tasks-not-required
3
+ * @version v4.13.8-event-start-tasks-array-fix
4
4
  * @link undefined
5
5
  * @license MIT
6
6
  */
@@ -26669,7 +26669,7 @@ var EventStartGuard = /** @class */ (function () {
26669
26669
  else {
26670
26670
  var task = void 0;
26671
26671
  if (taskId) {
26672
- task = payload.tasks.filter(function (x) { return x.id === taskId; });
26672
+ task = payload.tasks.find(function (x) { return x.id === taskId; });
26673
26673
  }
26674
26674
  else {
26675
26675
  task = tasksAssignedToUser[0];