commit 75be66757d809479ea1da3ffd65a16272057f59c
parent 9b61df4d11bb2356c7579f2e9589769ceff1d82b
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 17 Nov 2026 13:29:56 -0500
screen lines: a line with no reading in a take reads no provenance (the crash e2e found)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/umtool/components/projects/ScreenLineVoice.tsx b/umtool/components/projects/ScreenLineVoice.tsx
@@ -193,7 +193,7 @@ export function lineReadings(entry: Record<string, unknown>, role: string): Line
const pick = Number.isInteger(n.pick) ? (n.pick as number) : 0;
return (n.takes ?? []).flatMap((t, i) => {
const p = (t.parts ?? []).find((x) => x.role === role && !(x as { take?: string }).take);
- const asked = (p as { tuningAsked?: unknown }).tuningAsked;
+ const asked = (p as { tuningAsked?: unknown } | undefined)?.tuningAsked;
return p ? [{ take: i, picked: i === pick, file: p.file ?? null, text: String(p.text ?? ""), reading: Number.isInteger(p.reading) ? (p.reading as number) : 0, tuning: p.tuning ?? null, ...(asked === true || asked === "preset" ? { tuningAsked: asked } : {}) }] : [];
});
}