File tree Expand file tree Collapse file tree 4 files changed +2
-6
lines changed
packages/react-ui-components Expand file tree Collapse file tree 4 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 35
35
"lodash.omit" : " ^4.5.0" ,
36
36
"lodash.throttle" : " ^4.0.8" ,
37
37
"moment" : " ^2.14.1" ,
38
- "plow-js" : " ^2.2.0" ,
39
38
"react-close-on-escape" : " ^3.0.0" ,
40
39
"react-collapse" : " ^5.0.1" ,
41
40
"react-datetime" : " ^2.8.10" ,
Original file line number Diff line number Diff line change 1
1
/* eslint-disable camelcase, react/jsx-pascal-case */
2
2
import React , { PureComponent } from 'react' ;
3
3
import PropTypes from 'prop-types' ;
4
- import { $get } from 'plow-js' ;
5
4
import mergeClassNames from 'classnames' ;
6
5
import omit from 'lodash.omit' ;
7
6
import SelectBox_Option_SingleLine from '../SelectBox_Option_SingleLine' ;
@@ -160,7 +159,7 @@ class MultiSelectBox extends PureComponent {
160
159
161
160
getOptionValueAccessor = ( ) => {
162
161
const { optionValueField} = this . props ;
163
- return $get ( [ optionValueField ] ) ;
162
+ return subject => subject ?. [ optionValueField ] ;
164
163
} ;
165
164
166
165
handleNewValueSelected = value => {
Original file line number Diff line number Diff line change 1
1
/* eslint-disable camelcase, react/jsx-pascal-case */
2
2
import React , { PureComponent } from 'react' ;
3
3
import PropTypes from 'prop-types' ;
4
- import { $get } from 'plow-js' ;
5
4
import SelectBox_Option_SingleLine from '../SelectBox_Option_SingleLine' ;
6
5
import mergeClassNames from 'classnames' ;
7
6
import isEqual from 'lodash.isequal' ;
@@ -167,7 +166,7 @@ export default class SelectBox extends PureComponent {
167
166
} ;
168
167
169
168
getOptionValueAccessor ( ) {
170
- return $get ( [ this . props . optionValueField ] ) ;
169
+ return subject => subject ?. [ this . props . optionValueField ] ;
171
170
}
172
171
173
172
getSearchTerm ( ) {
Original file line number Diff line number Diff line change @@ -4129,7 +4129,6 @@ __metadata:
4129
4129
lodash.omit: ^4.5.0
4130
4130
lodash.throttle: ^4.0.8
4131
4131
moment: ^2.14.1
4132
- plow-js: ^2.2.0
4133
4132
react-close-on-escape: ^3.0.0
4134
4133
react-collapse: ^5.0.1
4135
4134
react-datetime: ^2.8.10
You can’t perform that action at this time.
0 commit comments