From d4f4751bf2718523befd7b4a1e7c75bb713c5840 Mon Sep 17 00:00:00 2001 From: nipunnadeen Date: Wed, 21 Aug 2019 14:43:24 +0530 Subject: [PATCH] Fix the web-clip device type issue of the APPM store --- .../src/components/apps/release/install/DeviceInstall.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js index 34dfefd362c..2af6be7a74d 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.store.ui/react-app/src/components/apps/release/install/DeviceInstall.js @@ -114,7 +114,6 @@ class DeviceInstall extends React.Component { rowSelection = { onChange: (selectedRowKeys, selectedRows) => { - // console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows); this.setState({ selectedRows: selectedRows }) @@ -142,9 +141,12 @@ class DeviceInstall extends React.Component { limit: 10, status: "ACTIVE", requireDeviceInfo: true, - type: deviceType }; + if (deviceType !== 'ANY') { + extraParams.type = deviceType; + } + // note: encode with '%26' not '&' const encodedExtraParams = Object.keys(extraParams).map(key => key + '=' + extraParams[key]).join('&');