File tree Expand file tree Collapse file tree
client/modules/IDE/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,12 +75,12 @@ const SketchList = ({
7575
7676 const isLoading = ( ) => loading && isInitialDataLoad ;
7777
78- const hasSketches = ( ) => ! isLoading ( ) && sketches ? .length > 0 ;
78+ const hasSketches = ( ) => ! isLoading ( ) && sketches . length > 0 ;
7979
8080 const renderLoader = ( ) => isLoading ( ) && < Loader /> ;
8181
8282 const renderEmptyTable = ( ) => {
83- if ( ! isLoading ( ) && sketches ? .length === 0 ) {
83+ if ( ! isLoading ( ) && sketches . length === 0 ) {
8484 return (
8585 < p className = "sketches-table__empty" > { t ( 'SketchList.NoSketches' ) } </ p >
8686 ) ;
@@ -111,14 +111,11 @@ const SketchList = ({
111111 'sketches-table__header--selected' : field === fieldName
112112 } ) ;
113113 const buttonLabel = getButtonLabel ( fieldName , displayName ) ;
114-
115114 return (
116115 < th scope = "col" >
117116 < button
118117 className = "sketch-list__sort-button"
119- onClick = { ( ) => {
120- toggleDirectionForField ( fieldName ) ;
121- } }
118+ onClick = { ( ) => toggleDirectionForField ( fieldName ) }
122119 aria-label = { buttonLabel }
123120 >
124121 < span className = { headerClass } > { displayName } </ span >
You can’t perform that action at this time.
0 commit comments