aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux
diff options
context:
space:
mode:
authorAijana Schumann <aijana.schumann@highstreet-technologies.com>2020-12-02 16:47:51 +0100
committerAijana Schumann <aijana.schumann@highstreet-technologies.com>2020-12-02 16:47:51 +0100
commit9e5ce985c3384526e54259efc4057bec71bb93bb (patch)
tree8f872751e9efdfdb785a9c802df224bf39741d16 /sdnr/wt/odlux
parentea481fe422e54a6734338df2321a8a6321a1ac12 (diff)
Bugfix InventoryApp
Fix treeview details not getting displayed Issue-ID: CCSDK-2937 Signed-off-by: Aijana Schumann <aijana.schumann@highstreet-technologies.com> Change-Id: Ic02e26144da0607126f034b25a0ccea22117266c
Diffstat (limited to 'sdnr/wt/odlux')
-rw-r--r--sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts b/sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts
index d43d2988d..cf25a40a8 100644
--- a/sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts
+++ b/sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts
@@ -50,7 +50,7 @@ class InventoryService {
}
};
const inventoryTreeElement = await requestRest<{
- output: {
+ "data-provider:output": {
"pagination": {
"size": number,
"page": number,
@@ -60,8 +60,8 @@ class InventoryService {
}
}>(path, { method: "POST", body: JSON.stringify(body) });
- return inventoryTreeElement && inventoryTreeElement.output && inventoryTreeElement.output.pagination && inventoryTreeElement.output.pagination.total >= 1 &&
- inventoryTreeElement.output.data && convertPropertyNames(inventoryTreeElement.output.data[0], replaceHyphen) || undefined;
+ return inventoryTreeElement && inventoryTreeElement["data-provider:output"] && inventoryTreeElement["data-provider:output"].pagination && inventoryTreeElement["data-provider:output"].pagination.total >= 1 &&
+ inventoryTreeElement["data-provider:output"].data && convertPropertyNames(inventoryTreeElement["data-provider:output"].data[0], replaceHyphen) || undefined;
// return await getElement(id);
}