From 9e5ce985c3384526e54259efc4057bec71bb93bb Mon Sep 17 00:00:00 2001 From: Aijana Schumann Date: Wed, 2 Dec 2020 16:47:51 +0100 Subject: Bugfix InventoryApp Fix treeview details not getting displayed Issue-ID: CCSDK-2937 Signed-off-by: Aijana Schumann Change-Id: Ic02e26144da0607126f034b25a0ccea22117266c --- sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sdnr/wt/odlux') 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); } -- cgit 1.2.3-korg