1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-25 22:46:31 -04:00

Fixed: Allow decimals for Custom Format size

Closes #5809
This commit is contained in:
Mark McDowall
2023-08-19 00:14:54 -07:00
parent 566fae9d58
commit 7f5ddff568
4 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ class NumberInput extends Component {
componentDidUpdate(prevProps, prevState) {
const { value } = this.props;
if (value !== prevProps.value && !this.state.isFocused) {
if (!isNaN(value) && value !== prevProps.value && !this.state.isFocused) {
this.setState({
value: value == null ? '' : value.toString()
});