Skip to content

Commit e042b47

Browse files
authored
Merge pull request #74 from pvdthings/fix-inventory-api-bug
Fix bug in inventory service
2 parents 4bf4fd4 + 628cf2a commit e042b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/api/services/inventory/service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const fetchItems = async () => {
3232
}
3333

3434
// Tech Debt: "id" here is actually the item number
35-
const fetchItem = async (id, { recordId }) => {
35+
const fetchItem = async (id, { recordId } = { recordId: undefined }) => {
3636
if (recordId) {
3737
const record = await items.find(recordId);
3838
return mapItem(record);

0 commit comments

Comments
 (0)