@@ -5,8 +5,8 @@ import { withRouter } from 'react-router-dom';
5
5
import AdvisoriesTable from '../../PresentationalComponents/AdvisoriesTable/AdvisoriesTable' ;
6
6
import { systemAdvisoriesColumns } from '../../PresentationalComponents/AdvisoriesTable/AdvisoriesTableAssets' ;
7
7
import Error from '../../PresentationalComponents/Snippets/Error' ;
8
- import { changeSystemAdvisoryListParams , clearSystemAdvisoriesStore ,
9
- expandSystemAdvisoryRow , fetchApplicableSystemAdvisories , selectSystemAdvisoryRow } from '../../store/Actions/Actions' ;
8
+ import { changeSystemAdvisoryListParams , clearSystemAdvisoriesStore , expandSystemAdvisoryRow ,
9
+ fetchApplicableSystemAdvisories , selectSystemAdvisoryRow } from '../../store/Actions/Actions' ;
10
10
import { STATUS_REJECTED } from '../../Utilities/constants' ;
11
11
import { createSystemAdvisoriesRows } from '../../Utilities/DataMappers' ;
12
12
import { arrayFromObj , createSortBy , decodeQueryparams , encodeURLParams ,
@@ -71,15 +71,15 @@ const SystemAdvisories = ({ history }) => {
71
71
)
72
72
) ;
73
73
74
- const onSelect = React . useCallback ( ( event , value , rowId ) => {
74
+ const onSelect = React . useCallback ( ( event , selected , rowId ) => {
75
75
const toSelect = [ ] ;
76
76
switch ( event ) {
77
77
case 'none' : {
78
78
Object . keys ( selectedRows ) . forEach ( id => {
79
79
toSelect . push (
80
80
{
81
- rowId : id ,
82
- value : false
81
+ id,
82
+ selected : false
83
83
}
84
84
) ;
85
85
} ) ;
@@ -90,17 +90,17 @@ const SystemAdvisories = ({ history }) => {
90
90
advisories . forEach ( ( { id } ) => {
91
91
toSelect . push (
92
92
{
93
- rowId : id ,
94
- value : true
93
+ id,
94
+ selected : true
95
95
}
96
96
) ; } ) ;
97
97
break ;
98
98
}
99
99
100
100
default : {
101
101
toSelect . push ( {
102
- rowId : getRowIdByIndexExpandable ( advisories , rowId ) ,
103
- value
102
+ id : getRowIdByIndexExpandable ( advisories , rowId ) ,
103
+ selected
104
104
} ) ;
105
105
} }
106
106
0 commit comments