Skip to content

Commit

Permalink
readd event survey on getSurveys method
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasheriques committed Feb 19, 2025
1 parent 572b7da commit 1a5ce0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/posthog-surveys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ export class PostHogSurveys {
return callback([])
}

if (this._surveyEventReceiver == null) {
this._surveyEventReceiver = new SurveyEventReceiver(this.instance)
}

const existingSurveys = this.instance.get_property(SURVEYS)

if (!existingSurveys || forceReload) {
Expand Down

0 comments on commit 1a5ce0b

Please sign in to comment.