Skip to content

Commit 4c12bba

Browse files
committed
fix show hide on cya
1 parent f6d811e commit 4c12bba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hmcts/ccd-case-ui-toolkit",
3-
"version": "7.2.59",
3+
"version": "7.2.59-3481",
44
"engines": {
55
"node": ">=18.19.0"
66
},

projects/ccd-case-ui-toolkit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hmcts/ccd-case-ui-toolkit",
3-
"version": "7.2.59",
3+
"version": "7.2.59-3481",
44
"engines": {
55
"node": ">=18.19.0"
66
},

projects/ccd-case-ui-toolkit/src/lib/shared/pipes/complex/ccd-read-fields-filter.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class ReadFieldsFilterPipe implements PipeTransform {
117117
} else if (field.show_condition) {
118118
let cond: ShowCondition;
119119
if (fieldId && field.show_condition.indexOf(`${fieldId}.`) > -1 && !formGroupAvailable && !!Object.keys(formValue).length) {
120-
const search = `${fieldId}.`;
120+
const search = `/.*${fieldId}./`;
121121
const searchRegExp = new RegExp(search, 'g');
122122
const replaceWith = '';
123123
cond = ShowCondition.getInstance(field.show_condition.replace(searchRegExp, replaceWith));

0 commit comments

Comments
 (0)