File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -289,19 +289,17 @@ class CheckboxTree extends React.Component {
289
289
renderGlobalOptions ( ) {
290
290
const { showExpandAll } = this . props ;
291
291
292
- if ( ! showExpandAll ) {
293
- return null ;
294
- }
295
-
296
- return < GlobalActions onCollapseAll = { this . onCollapseAll } onExpandAll = { this . onExpandAll } /> ;
292
+ return showExpandAll ? (
293
+ < GlobalActions onCollapseAll = { this . onCollapseAll } onExpandAll = { this . onExpandAll } />
294
+ ) : null ;
297
295
}
298
296
299
297
renderHiddenInput ( ) {
300
298
const { checked, name, nameAsArray } = this . props ;
301
299
302
- return name === undefined ? null : (
300
+ return name !== undefined ? (
303
301
< HiddenInput checked = { checked } name = { name } nameAsArray = { nameAsArray } />
304
- ) ;
302
+ ) : null ;
305
303
}
306
304
307
305
render ( ) {
You can’t perform that action at this time.
0 commit comments