fix(production): 移除 Create.tsx 中未使用的 units 變數與重複屬性
This commit is contained in:
@@ -29,10 +29,7 @@ interface Warehouse {
|
||||
name: string;
|
||||
}
|
||||
|
||||
interface Unit {
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
|
||||
|
||||
interface InventoryOption {
|
||||
id: number;
|
||||
@@ -81,10 +78,9 @@ interface BomItem {
|
||||
interface Props {
|
||||
products: Product[];
|
||||
warehouses: Warehouse[];
|
||||
units: Unit[];
|
||||
}
|
||||
|
||||
export default function Create({ products, warehouses, units }: Props) {
|
||||
export default function Create({ products, warehouses }: Props) {
|
||||
const [selectedWarehouse, setSelectedWarehouse] = useState<string>(""); // 產出倉庫
|
||||
// 快取對照表:product_id -> inventories across warehouses
|
||||
const [productInventoryMap, setProductInventoryMap] = useState<Record<string, InventoryOption[]>>({});
|
||||
|
||||
Reference in New Issue
Block a user