Skip to content

: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.

fix(dashboards): skip filter debounce on dashboard card display options (#65857)

Sam Penningtonef6dd3e5c9df
diff --git a/frontend/src/scenes/insights/insightVizDataLogic.ts b/frontend/src/scenes/insights/insightVizDataLogic.ts
index b2e21bc06fb7..c839955ed7b5 100644
--- a/frontend/src/scenes/insights/insightVizDataLogic.ts
+++ b/frontend/src/scenes/insights/insightVizDataLogic.ts
@@ -713,7 +713,11 @@ export const insightVizDataLogic = kea<insightVizDataLogicType>([
// insight filter
updateInsightFilter: async ({ insightFilter }, breakpoint) => {
- await breakpoint(300)
+ // When an external save handler is wired (dashboard card), skip the debounce so
+ // rapid successive toggle clicks don't cancel each other and lose earlier changes.
+ if (!props.setQuery) {
+ await breakpoint(300)
+ }
if (isWebAnalyticsInsightQuery(values.localQuerySource)) {
return