File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
src/shared/components/case-list Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
## RELEASE NOTES
2
+ ### Version 2.64.45-caselist-selected-check
3
+ ** EUI-2681** Fix bug for the caselist check
4
+
2
5
### Version 2.64.44-retain-hidden-value-fix-for-complex-types
3
6
** EUI-2681** Fix bug with check for complex field types
4
7
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @hmcts/ccd-case-ui-toolkit" ,
3
- "version" : " 2.64.44-retain-hidden-value-fix-for-complex-types " ,
3
+ "version" : " 2.64.45-caselist-selected-check " ,
4
4
"engines" : {
5
5
"yarn" : " ^1.12.3" ,
6
6
"npm" : " ^5.6.0"
Original file line number Diff line number Diff line change @@ -87,9 +87,11 @@ export class CaseListComponent {
87
87
}
88
88
89
89
public isSelected ( c : any ) : boolean {
90
- for ( let index = 0 , length = this . selectedCases . length ; index < length ; index ++ ) {
91
- if ( c [ this . tableConfig . idField ] === this . selectedCases [ index ] [ this . tableConfig . idField ] ) {
92
- return true ;
90
+ if ( this . selectedCases ) {
91
+ for ( let index = 0 , length = this . selectedCases . length ; index < length ; index ++ ) {
92
+ if ( c [ this . tableConfig . idField ] === this . selectedCases [ index ] [ this . tableConfig . idField ] ) {
93
+ return true ;
94
+ }
93
95
}
94
96
}
95
97
return false ;
You can’t perform that action at this time.
0 commit comments