We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4bf4fd4 + 628cf2a commit e042b47Copy full SHA for e042b47
apps/api/services/inventory/service.js
@@ -32,7 +32,7 @@ const fetchItems = async () => {
32
}
33
34
// Tech Debt: "id" here is actually the item number
35
-const fetchItem = async (id, { recordId }) => {
+const fetchItem = async (id, { recordId } = { recordId: undefined }) => {
36
if (recordId) {
37
const record = await items.find(recordId);
38
return mapItem(record);
0 commit comments