summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts
diff options
context:
space:
mode:
authorAijana Schumann <aijana.schumann@highstreet-technologies.com>2021-07-30 09:03:14 +0200
committerAijana Schumann <aijana.schumann@highstreet-technologies.com>2021-07-30 09:03:14 +0200
commit948204ee82cd6c2c0cedf2820eec0610a9df7185 (patch)
tree88ddc92346e61721955ed354db9f49a1f288cdc6 /sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts
parente4f3ee3ce9264c6ca41928e49c3075d4ca99eb0f (diff)
Update InventoryApp
Fix several bugs and improve usability Issue-ID: CCSDK-3395 Signed-off-by: Aijana Schumann <aijana.schumann@highstreet-technologies.com> Change-Id: I25a3badc2d179ccc99ffd38e860046dbfd771df1
Diffstat (limited to 'sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts')
-rw-r--r--sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts4
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);
}