We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59f5599 commit 24e7c2cCopy full SHA for 24e7c2c
src/Options.jsx
@@ -12,9 +12,9 @@ class Options extends React.Component {
12
};
13
14
getValidValue() {
15
- const { goInputText, current } = this.state;
+ const { goInputText } = this.state;
16
// eslint-disable-next-line no-restricted-globals
17
- return !goInputText || isNaN(goInputText) ? current : Number(goInputText);
+ return !goInputText || isNaN(goInputText) ? undefined : Number(goInputText);
18
}
19
20
buildOptionText = (value) => `${value} ${this.props.locale.items_per_page}`;
0 commit comments