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 {
289289 renderGlobalOptions ( ) {
290290 const { showExpandAll } = this . props ;
291291
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 ;
297295 }
298296
299297 renderHiddenInput ( ) {
300298 const { checked, name, nameAsArray } = this . props ;
301299
302- return name === undefined ? null : (
300+ return name !== undefined ? (
303301 < HiddenInput checked = { checked } name = { name } nameAsArray = { nameAsArray } />
304- ) ;
302+ ) : null ;
305303 }
306304
307305 render ( ) {
You can’t perform that action at this time.
0 commit comments