From: Aijana Schumann Date: Wed, 2 Dec 2020 15:47:51 +0000 (+0100) Subject: Bugfix InventoryApp X-Git-Tag: 1.1.1~32 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=9e5ce985c3384526e54259efc4057bec71bb93bb;p=ccsdk%2Ffeatures.git Bugfix InventoryApp Fix treeview details not getting displayed Issue-ID: CCSDK-2937 Signed-off-by: Aijana Schumann Change-Id: Ic02e26144da0607126f034b25a0ccea22117266c --- 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); }