Skip to content

Commit

Permalink
fix: sampling typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin committed Apr 10, 2024
1 parent 8c5da35 commit fb24229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/posthog-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1706,7 +1706,7 @@ export class PostHog {
* disable_session_recording to false
* @param override.sampling - optional boolean to override the default sampling behavior - ensures the next session recording to start will not be skipped by sampling config.
*/
startSessionRecording(override: { sampling?: boolean }): void {
startSessionRecording(override?: { sampling?: boolean }): void {
if (override?.sampling) {
// allow the session id check to rotate session id if necessary
const ids = this.sessionManager?.checkAndGetSessionAndWindowId()
Expand Down

0 comments on commit fb24229

Please sign in to comment.