diff --git a/src/components/CreateItem/CreateItemWrapper.tsx b/src/components/CreateItem/CreateItemWrapper.tsx index 343e6bf..2a4b468 100644 --- a/src/components/CreateItem/CreateItemWrapper.tsx +++ b/src/components/CreateItem/CreateItemWrapper.tsx @@ -24,7 +24,7 @@ const CreateItemWrapper: React.FC & SubComponents = async ({ id }) => { if (id) { result = await fetchItem(id); const item = result.item; - qcChecks = result.qcChecks; + qcChecks = result.qcChecks ?? []; const activeRows = qcChecks.filter((it) => it.isActive).map((i) => i.id); // Normalize LocationCode field (handle case sensitivity from MySQL) diff --git a/src/i18n/zh/common.json b/src/i18n/zh/common.json index 2bab585..633d082 100644 --- a/src/i18n/zh/common.json +++ b/src/i18n/zh/common.json @@ -77,7 +77,7 @@ "User": "用戶", "user": "用戶", "User Group": "用戶群組", - "Items": "物料", + "Items": "物品", "BOM Weighting Score List": "物料清單權重得分", "Material Weighting": "物料清單加權", "Material Score": "物料清單得分", @@ -175,7 +175,7 @@ "Inventory": "庫存", "scheduling": "排程", "settings": "設定", - "items": "物料", + "items": "物品", "edit":"編輯", "bag": "包裝袋", "Bag Usage": "包裝袋使用記錄", diff --git a/src/i18n/zh/project.json b/src/i18n/zh/project.json index 7522b1c..f5d7a11 100644 --- a/src/i18n/zh/project.json +++ b/src/i18n/zh/project.json @@ -3,7 +3,7 @@ "FG & Material Demand Forecast Detail": "FG 及材料需求預測詳情", "Release": "發佈", "Actions": "操作", - "Product": "產品", + "Product": "物品", "Details": "詳情", "View BoM": "查看 BoM", "description": "描述",