From a7e213c9fbb8bedbe3aa0bac0f452ef6e30be43a Mon Sep 17 00:00:00 2001 From: amalhub Date: Mon, 28 Aug 2017 15:12:24 +0530 Subject: [PATCH] Fix issue: https://github.com/wso2/product-iots/issues/1133 --- .../devicemgt/app/pages/cdmf.page.devices/public/js/listing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js index 4963ffc5b1..8230ad01ce 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.devices/public/js/listing.js @@ -895,7 +895,7 @@ function removeDevices(deviceIdentifiers) { var serviceURL = "/api/device-mgt/v1.0/devices/type/" + deviceIdentifiers[0].type + "/id/" + deviceIdentifiers[0].id; invokerUtil.delete(serviceURL, function (message) { if (deviceIdentifiers.length > 1) { - deviceIdentifiers.slice(1, deviceIdentifiers.length); + deviceIdentifiers.shift(); removeDevices(deviceIdentifiers); } else { $(modalPopupContent).html($('#remove-device-200-content').html());