diff options
Diffstat (limited to 'sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts')
-rw-r--r-- | sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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<InventoryTreeNode>(path, { method: "POST" , body: JSON.stringify(body)}); - return inventoryTree && convertPropertyNames(inventoryTree, replaceHyphen) || null; + return inventoryTree && inventoryTree || null; } public async getInventoryEntry(id: string): Promise<InventoryType | undefined> { @@ -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); } |