File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -931,13 +931,6 @@ export class PostHog {
931
931
data . properties [ '$event_time_override_system_time' ] = systemTime
932
932
}
933
933
934
- // Top-level $set overriding values from the one from properties is taken from the plugin-server normalizeEvent
935
- // This doesn't handle $set_once, because posthog-people doesn't either
936
- const finalSet = { ...data . properties [ '$set' ] , ...data [ '$set' ] }
937
- if ( ! isEmptyObject ( finalSet ) ) {
938
- this . setPersonPropertiesForFlags ( finalSet )
939
- }
940
-
941
934
if ( event_name === SurveyEventName . DISMISSED || event_name === SurveyEventName . SENT ) {
942
935
const surveyId = properties ?. [ SurveyEventProperties . SURVEY_ID ]
943
936
const surveyIteration = properties ?. [ SurveyEventProperties . SURVEY_ITERATION ]
@@ -951,6 +944,13 @@ export class PostHog {
951
944
}
952
945
}
953
946
947
+ // Top-level $set overriding values from the one from properties is taken from the plugin-server normalizeEvent
948
+ // This doesn't handle $set_once, because posthog-people doesn't either
949
+ const finalSet = { ...data . properties [ '$set' ] , ...data [ '$set' ] }
950
+ if ( ! isEmptyObject ( finalSet ) ) {
951
+ this . setPersonPropertiesForFlags ( finalSet )
952
+ }
953
+
954
954
if ( ! isNullish ( this . config . before_send ) ) {
955
955
const beforeSendResult = this . _runBeforeSend ( data )
956
956
if ( ! beforeSendResult ) {
You can’t perform that action at this time.
0 commit comments