:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(home): prevent crash when pasting a number into launchpad search (#59370)
Xander8c177fa3c1dd
diff --git a/frontend/src/scenes/project-homepage/ai-first/aiFirstHomepageLogic.ts b/frontend/src/scenes/project-homepage/ai-first/aiFirstHomepageLogic.tsindex 6e2d23fc4a2a..1fa1261d50bd 100644--- a/frontend/src/scenes/project-homepage/ai-first/aiFirstHomepageLogic.ts+++ b/frontend/src/scenes/project-homepage/ai-first/aiFirstHomepageLogic.ts@@ -268,7 +268,7 @@ export const aiFirstHomepageLogic = kea<aiFirstHomepageLogicType>([urlToAction(({ actions, values }) => ({[urls.projectHomepage()]: (_, searchParams) => {const urlMode = (searchParams.mode as HomepageMode) || 'idle'- const urlQuery = (searchParams.q as string) || ''+ const urlQuery = searchParams.q != null ? String(searchParams.q) : ''const urlChat = (searchParams.chat as string) || ''if (urlMode === 'idle' && values.mode !== 'idle') {@@ -324,7 +324,7 @@ export const aiFirstHomepageLogic = kea<aiFirstHomepageLogicType>([const { searchParams } = router.valuesconst urlMode = (searchParams.mode as HomepageMode) || 'idle'- const urlQuery = (searchParams.q as string) || ''+ const urlQuery = searchParams.q != null ? String(searchParams.q) : ''const urlChat = (searchParams.chat as string) || ''if (urlMode === 'ai') {