Skip to content

Commit c56f2d2

Browse files
JonasBaclaude
andcommitted
fix(cmdk): Remove String() coercion in story component
Same no-base-to-string fix as the modal and test helper — pass action.to directly to normalizeUrl which already accepts LocationDescriptor. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f1a1a06 commit c56f2d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/app/components/commandPalette/__stories__/components.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function CommandPaletteDemo() {
1515
const handleAction = useCallback(
1616
(action: CollectionTreeNode<CMDKActionData>) => {
1717
if ('to' in action) {
18-
navigate(normalizeUrl(String(action.to)));
18+
navigate(normalizeUrl(action.to));
1919
} else if ('onAction' in action) {
2020
action.onAction();
2121
}

0 commit comments

Comments
 (0)