Skip to content

Commit 7f96e5b

Browse files
committed
TASK: Remove plow-js from @neos-project/react-ui-components
1 parent 846d712 commit 7f96e5b

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

packages/react-ui-components/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"lodash.omit": "^4.5.0",
3636
"lodash.throttle": "^4.0.8",
3737
"moment": "^2.14.1",
38-
"plow-js": "^2.2.0",
3938
"react-close-on-escape": "^3.0.0",
4039
"react-collapse": "^5.0.1",
4140
"react-datetime": "^2.8.10",

packages/react-ui-components/src/MultiSelectBox/multiSelectBox.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable camelcase, react/jsx-pascal-case */
22
import React, {PureComponent} from 'react';
33
import PropTypes from 'prop-types';
4-
import {$get} from 'plow-js';
54
import mergeClassNames from 'classnames';
65
import omit from 'lodash.omit';
76
import SelectBox_Option_SingleLine from '../SelectBox_Option_SingleLine';
@@ -160,7 +159,7 @@ class MultiSelectBox extends PureComponent {
160159

161160
getOptionValueAccessor = () => {
162161
const {optionValueField} = this.props;
163-
return $get([optionValueField]);
162+
return subject => subject?.[optionValueField];
164163
};
165164

166165
handleNewValueSelected = value => {

packages/react-ui-components/src/SelectBox/selectBox.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable camelcase, react/jsx-pascal-case */
22
import React, {PureComponent} from 'react';
33
import PropTypes from 'prop-types';
4-
import {$get} from 'plow-js';
54
import SelectBox_Option_SingleLine from '../SelectBox_Option_SingleLine';
65
import mergeClassNames from 'classnames';
76
import isEqual from 'lodash.isequal';
@@ -167,7 +166,7 @@ export default class SelectBox extends PureComponent {
167166
};
168167

169168
getOptionValueAccessor() {
170-
return $get([this.props.optionValueField]);
169+
return subject => subject?.[this.props.optionValueField];
171170
}
172171

173172
getSearchTerm() {

yarn.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4129,7 +4129,6 @@ __metadata:
41294129
lodash.omit: ^4.5.0
41304130
lodash.throttle: ^4.0.8
41314131
moment: ^2.14.1
4132-
plow-js: ^2.2.0
41334132
react-close-on-escape: ^3.0.0
41344133
react-collapse: ^5.0.1
41354134
react-datetime: ^2.8.10

0 commit comments

Comments
 (0)