Skip to content

Commit

Permalink
fix: toolbar clickmap reset (#22501)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra authored May 24, 2024
1 parent bbd95a0 commit e31cf33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/toolbar/elements/heatmapLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,11 @@ export const heatmapLogic = kea<heatmapLogicType>([
}

return {
results: [...(values.elementStats?.results || []), ...paginatedResults.results],
results: [
// if url is present we are paginating and merge results, otherwise we only use the new results
...(url ? values.elementStats?.results || [] : []),
...(paginatedResults.results || []),
],
next: paginatedResults.next,
previous: paginatedResults.previous,
} as PaginatedResponse<ElementsEventType>
Expand Down

0 comments on commit e31cf33

Please sign in to comment.