Skip to content

Commit 078f218

Browse files
committed
remove misc changes
1 parent 765b0a6 commit 078f218

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

client/modules/IDE/components/SketchList.jsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)