From 820f94815f0388c970c4393ada9584f2ed7e3e08 Mon Sep 17 00:00:00 2001 From: nipun Date: Mon, 14 Oct 2019 16:45:49 +0530 Subject: [PATCH] Fix the os version issue of the APPM publisher --- .../src/components/new-app/subForms/NewAppUploadForm.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/subForms/NewAppUploadForm.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/subForms/NewAppUploadForm.js index d8e52bc2be..79fd42a5f5 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/subForms/NewAppUploadForm.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/components/new-app/subForms/NewAppUploadForm.js @@ -221,7 +221,7 @@ class NewAppUploadForm extends React.Component { }; handleLowerOsVersionChange = (lowerOsVersion) => { - this.lowerOsVersion = lowerOsVersion; + this.lowerOsVersion = parseFloat(lowerOsVersion); this.setState({ osVersionsValidateStatus: 'validating', osVersionsHelperText: '' @@ -229,7 +229,7 @@ class NewAppUploadForm extends React.Component { }; handleUpperOsVersionChange = (upperOsVersion) => { - this.upperOsVersion = upperOsVersion; + this.upperOsVersion = parseFloat(upperOsVersion); this.setState({ osVersionsValidateStatus: 'validating', osVersionsHelperText: '' @@ -479,6 +479,7 @@ class NewAppUploadForm extends React.Component { required: true, message: 'Please select' }], + initialValue: false })( } unCheckedChildren={}