From 948204ee82cd6c2c0cedf2820eec0610a9df7185 Mon Sep 17 00:00:00 2001 From: Aijana Schumann Date: Fri, 30 Jul 2021 09:03:14 +0200 Subject: Update InventoryApp Fix several bugs and improve usability Issue-ID: CCSDK-3395 Signed-off-by: Aijana Schumann Change-Id: I25a3badc2d179ccc99ffd38e860046dbfd771df1 --- sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts') diff --git a/sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts b/sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts index cf25a40a8..cb70bf522 100644 --- a/sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts +++ b/sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts @@ -32,7 +32,7 @@ class InventoryService { "query": searchTerm }; const inventoryTree = await requestRest(path, { method: "POST" , body: JSON.stringify(body)}); - return inventoryTree && convertPropertyNames(inventoryTree, replaceHyphen) || null; + return inventoryTree && inventoryTree || null; } public async getInventoryEntry(id: string): Promise { @@ -61,7 +61,7 @@ class InventoryService { }>(path, { method: "POST", body: JSON.stringify(body) }); 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; + inventoryTreeElement["data-provider:output"].data && inventoryTreeElement["data-provider:output"].data[0] || undefined; // return await getElement(id); } -- cgit 1.2.3-korg