Missing Field Handling

This commit is contained in:
2026-05-01 13:54:05 -05:00
parent 5a6491fa51
commit 09447be473
9 changed files with 252 additions and 105 deletions

View File

@@ -12,17 +12,17 @@ struct SpreadsheetView: View {
}
private static let columnDefs: [ColumnDef] = [
ColumnDef(label: "PI First Name", width: 130) { $0.piFirstName },
ColumnDef(label: "Physical State", width: 120) { $0.physicalState },
ColumnDef(label: "Chemical Name", width: 180) { $0.chemicalName },
ColumnDef(label: "Bldg Code", width: 100) { $0.bldgCode },
ColumnDef(label: "LAB", width: 80) { $0.lab },
ColumnDef(label: "Storage Location", width: 145) { $0.storageLocation },
ColumnDef(label: "Storage Device", width: 140) { $0.storageDevice },
ColumnDef(label: "# of Containers", width: 120) { $0.numberOfContainers },
ColumnDef(label: "Amount / Container", width: 150) { $0.amountPerContainer },
ColumnDef(label: "Unit of Measure", width: 130) { $0.unitOfMeasure },
ColumnDef(label: "CAS #", width: 115) { $0.casNumber },
ColumnDef(label: "PI First Name", width: 130) { $0.piFirstName ?? "" },
ColumnDef(label: "Physical State", width: 120) { $0.physicalState ?? "" },
ColumnDef(label: "Chemical Name", width: 180) { $0.chemicalName ?? "" },
ColumnDef(label: "Bldg Code", width: 100) { $0.bldgCode ?? "" },
ColumnDef(label: "LAB", width: 80) { $0.lab ?? "" },
ColumnDef(label: "Storage Location", width: 145) { $0.storageLocation ?? "" },
ColumnDef(label: "Storage Device", width: 140) { $0.storageDevice ?? "" },
ColumnDef(label: "# of Containers", width: 120) { $0.numberOfContainers ?? "" },
ColumnDef(label: "Amount / Container", width: 150) { $0.amountPerContainer ?? "" },
ColumnDef(label: "Unit of Measure", width: 130) { $0.unitOfMeasure ?? "" },
ColumnDef(label: "CAS #", width: 115) { $0.casNumber ?? "" },
ColumnDef(label: "Chemical Formula", width: 140) { $0.chemicalFormula ?? "" },
ColumnDef(label: "Molecular Weight", width: 130) { $0.molecularWeight ?? "" },
ColumnDef(label: "Vendor", width: 130) { $0.vendor ?? "" },