mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-29 15:44:22 +00:00
Guard against tracking an empty preset value in both /init and /init/v0 routes. When no valid preset code is in the URL, getPresetCode encodes one from the parsed config params. The conditional spread ensures an empty string never reaches analytics. https://claude.ai/code/session_018Mm7WJAaSUGSqamSm3RiyC