Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5fc94b9

Browse files
author
Garion Herman
committed
FIX Revert scope change of TreeDropdownField hack and suppress linter
This function can't use the arrow syntax, as it must be scoped to theprototype rather than the file. This fix reverts to the previous syntaxand applies a linter ignore statement to suppress the 'unnamed function'warning.
1 parent90ede46 commit5fc94b9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎client/dist/js/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎client/src/components/TreeDropdownField/TreeDropdownField.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,8 @@ class TreeDropdownField extends Component {
698698
}
699699

700700
// Hack! Temporary fix until we can do a proper upgrade of react-select to >= 2.0.
701-
Select.prototype.componentWillReceiveProps=(nextProps)=>{
701+
// eslint-disable-next-line func-names
702+
Select.prototype.componentWillReceiveProps=function(nextProps){
702703
functionhandleRequired(value,multi){
703704
if(!value){
704705
returntrue;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp