refactor(studio): collapse dead-branch scale ternary in Adjust sliders

Review of Task 6 flagged the exposure/other-key scale ternary as always
resolving to 100 on both arms.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Vance Ingalls
2026-07-14 15:50:52 -07:00
co-authored by Claude Sonnet 5
parent 96d90feb50
commit 82cb7b8979
@@ -262,8 +262,7 @@ export function FlatColorGradingSection({
Adjust
</div>
{ADJUST_SLIDERS.map((slider) => {
const scale = slider.key === "exposure" ? 100 : 100;
const rawPercent = grading.adjust[slider.key] * scale;
const rawPercent = grading.adjust[slider.key] * 100;
const isSet = Math.abs(grading.adjust[slider.key]) > 1e-6;
return (
<div key={slider.key} data-flat-grade-adjust="true">
@@ -279,7 +278,7 @@ export function FlatColorGradingSection({
onCommit={(next) =>
onCommitColorGrading({
...grading,
adjust: { ...grading.adjust, [slider.key]: next / scale },
adjust: { ...grading.adjust, [slider.key]: next / 100 },
})
}
onReset={() =>