Skip to content

Commit 023036b

Browse files
committed
fix failure on click, null -> empty function
1 parent a68e9ce commit 023036b

File tree

2 files changed

+2
-2
lines changed
  • lib/components/Progress/ProgressPage
  • src/components/Progress/ProgressPage

2 files changed

+2
-2
lines changed

lib/components/Progress/ProgressPage/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var ProgressPage = (function (_super) {
3333
var canActivate = index <= pagePosition;
3434
return (React.createElement(List_1.ListItem, {key: index, style: Object.assign({}, styles, canActivate ? {} : { color: colors_1.grey400 }), primaryText: (index + 1) + ". " + page.title, secondaryText: page.description, leftIcon: progressIcon_1.default(progress.pages, pagePosition, index), onClick: canActivate
3535
? selectPage.bind(this, index)
36-
: null}));
36+
: function () { return; }}));
3737
};
3838
;
3939
ProgressPage = __decorate([

src/components/Progress/ProgressPage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default class ProgressPage extends React.Component<{
4040
canActivate
4141
? selectPage.bind(this, index)
4242
// do nothing
43-
: null
43+
: () => { return; }
4444
}
4545
/>
4646
);

0 commit comments

Comments
 (0)