build fixes
This commit is contained in:
parent
6f7065d486
commit
e3d59b5512
2 changed files with 848 additions and 285 deletions
|
|
@ -27,11 +27,6 @@ type Rec = {
|
|||
laser_soft?: { id?: string | number; name?: string | null } | string | number | null;
|
||||
repeat_all?: number | null;
|
||||
|
||||
// NEW lens config fields that may be required by schema
|
||||
lens_conf?: number | null;
|
||||
lens_apt?: number | null;
|
||||
lens_exp?: number | null;
|
||||
|
||||
fill_settings?: any[] | null;
|
||||
line_settings?: any[] | null;
|
||||
raster_settings?: any[] | null;
|
||||
|
|
@ -163,11 +158,6 @@ export default function CO2GalvoDetail({
|
|||
"laser_soft.name",
|
||||
"repeat_all",
|
||||
|
||||
// NEW lens config fields
|
||||
"lens_conf",
|
||||
"lens_apt",
|
||||
"lens_exp",
|
||||
|
||||
"fill_settings",
|
||||
"line_settings",
|
||||
"raster_settings",
|
||||
|
|
@ -216,6 +206,7 @@ export default function CO2GalvoDetail({
|
|||
const sourceId = rec.source && typeof rec.source === "object" ? rec.source.submission_id ?? null : (rec.source as any) ?? null;
|
||||
|
||||
return {
|
||||
submission_id: rec.submission_id, // ★ include for type parity
|
||||
setting_title: rec.setting_title ?? "",
|
||||
setting_notes: rec.setting_notes ?? "",
|
||||
|
||||
|
|
@ -235,11 +226,6 @@ export default function CO2GalvoDetail({
|
|||
laser_soft: (typeof rec.laser_soft === "object" ? rec.laser_soft?.id : (rec.laser_soft as any)) ?? null,
|
||||
repeat_all: rec.repeat_all ?? null,
|
||||
|
||||
// pass through for edit prefill
|
||||
lens_conf: rec.lens_conf ?? null,
|
||||
lens_apt: rec.lens_apt ?? null,
|
||||
lens_exp: rec.lens_exp ?? null,
|
||||
|
||||
fill_settings: rec.fill_settings ?? [],
|
||||
line_settings: rec.line_settings ?? [],
|
||||
raster_settings: rec.raster_settings ?? [],
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue