Skip to content

Commit

Permalink
fix condition for undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasMizera committed Jun 10, 2021
1 parent 07e0eb5 commit d7a4a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/qml/editor/inputrange.qml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Item {
property string suffix: config["Suffix"] ? config["Suffix"] : ""

function getRange(rangeValue, defaultRange) {
if (rangeValue && rangeValue >= -max_range && rangeValue <= max_range)
if ( typeof rangeValue !== undefined && rangeValue >= -max_range && rangeValue <= max_range)
return rangeValue
else return defaultRange/spinbox.multiplier
}
Expand Down

3 comments on commit d7a4a4d

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

signed apk: arm64-v8a (SDK: android-22)

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

signed apk: armeabi-v7a (SDK: android-22)

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ios-2.15.210610165115 (SDK: ios-15)

Please sign in to comment.