@hmcts/ccd-case-ui-toolkit 7.3.0-3481 → 7.3.0-error-trigger-nav
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.
|
@@ -30146,7 +30146,7 @@ class ReadFieldsFilterPipe {
|
|
|
30146
30146
|
else if (field.show_condition) {
|
|
30147
30147
|
let cond;
|
|
30148
30148
|
if (fieldId && field.show_condition.indexOf(`${fieldId}.`) > -1 && !formGroupAvailable && !!Object.keys(formValue).length) {
|
|
30149
|
-
const search =
|
|
30149
|
+
const search = `${fieldId}.`;
|
|
30150
30150
|
const searchRegExp = new RegExp(search, 'g');
|
|
30151
30151
|
const replaceWith = '';
|
|
30152
30152
|
cond = ShowCondition.getInstance(field.show_condition.replace(searchRegExp, replaceWith));
|
|
@@ -34746,8 +34746,10 @@ class EventTriggerResolver {
|
|
|
34746
34746
|
this.alertService.setPreserveAlerts(true);
|
|
34747
34747
|
this.alertService.error(error.message);
|
|
34748
34748
|
this.errorNotifier.announceError(error);
|
|
34749
|
-
|
|
34750
|
-
|
|
34749
|
+
if (!this.router.url?.includes('/cases/case-details/')) {
|
|
34750
|
+
caseTypeId = route.parent.paramMap.get('caseType');
|
|
34751
|
+
this.router.navigate([`/cases/case-details/${jurisdiction}/${caseType}/${cid}/tasks`]);
|
|
34752
|
+
}
|
|
34751
34753
|
return throwError(error);
|
|
34752
34754
|
})).toPromise();
|
|
34753
34755
|
}
|