mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Returning correct representation of the device to template.
This commit is contained in:
parent
cef865f53a
commit
4c4eba93d8
@ -23,7 +23,7 @@ function onRequest(context) {
|
||||
|
||||
if (deviceType != null && deviceType != undefined && deviceId != null && deviceId != undefined) {
|
||||
var deviceModule = require("/app/modules/business-controllers/device.js")["deviceModule"];
|
||||
var device = deviceModule.viewDevice(deviceType, deviceId);
|
||||
var device = deviceModule.viewDevice(deviceType, deviceId)["content"];
|
||||
|
||||
if (device) {
|
||||
var viewModel = {};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user