Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Nov 12, 2024
1 parent 52ac8c2 commit ed25c03
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/BomTable.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { SupplierName } from "@tscircuit/props"
import { AnyCircuitElement } from "circuit-json"
import { Link } from "wouter"

Expand All @@ -24,11 +25,11 @@ export const BomTable: React.FC<BomTableProps> = ({ circuitJson }) => {
(el) => el.type === "source_component",
)

const supplierColumns = new Set<string>()
const supplierColumns = new Set<SupplierName>()
sourceComponents.forEach((comp) => {
if (comp.supplier_part_numbers) {
Object.keys(comp.supplier_part_numbers).forEach((supplier) =>
supplierColumns.add(supplier),
supplierColumns.add(supplier as SupplierName),
)
}
})
Expand Down

0 comments on commit ed25c03

Please sign in to comment.