Skip to content

Commit 3c38af3

Browse files
ryan-williamsclaude
andcommitted
Fix type error for null leftAction in group renderer
Cast null to string since use-kbd's TwoColumnRow type doesn't yet support null values (runtime handles it fine). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8cf08b0 commit 3c38af3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/src/components/groupRenderers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const YAxisMetricsRenderer = createTwoColumnRenderer({
3030
headers: ['Metric', 'Left', 'Right'],
3131
getRows: () => METRICS.map(m => ({
3232
label: METRIC_LABELS[m] ?? m,
33-
leftAction: m === 'none' ? null : `left:${m}`,
33+
leftAction: (m === 'none' ? null : `left:${m}`) as string,
3434
rightAction: `right:${m}`,
3535
})),
3636
})

0 commit comments

Comments
 (0)