File tree 2 files changed +20
-4
lines changed
2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -869,7 +869,11 @@ export namespace NATIVE {
869
869
return ;
870
870
}
871
871
runOnScope ( ( scope ) => {
872
- scope . setTag ( key , value ) ;
872
+ if ( value ) {
873
+ scope . setTag ( key , value ) ;
874
+ } else {
875
+ scope . removeTag ( key ) ;
876
+ }
873
877
} ) ;
874
878
}
875
879
@@ -878,7 +882,11 @@ export namespace NATIVE {
878
882
return ;
879
883
}
880
884
runOnScope ( ( scope ) => {
881
- scope . setExtra ( key , extra ) ;
885
+ if ( extra ) {
886
+ scope . setExtra ( key , extra ) ;
887
+ } else {
888
+ scope . removeExtra ( key ) ;
889
+ }
882
890
} ) ;
883
891
}
884
892
Original file line number Diff line number Diff line change @@ -536,7 +536,11 @@ export namespace NATIVE {
536
536
return ;
537
537
}
538
538
NSSentrySDK . configureScope ( ( scope : SentryScope ) => {
539
- scope . setTagValueForKey ( value , key ) ;
539
+ if ( value ) {
540
+ scope . setTagValueForKey ( key , value ) ;
541
+ } else {
542
+ scope . removeTagForKey ( key ) ;
543
+ }
540
544
} ) ;
541
545
}
542
546
@@ -545,7 +549,11 @@ export namespace NATIVE {
545
549
return ;
546
550
}
547
551
NSSentrySDK . configureScope ( ( scope : SentryScope ) => {
548
- scope . setExtraValueForKey ( extra , key ) ;
552
+ if ( extra ) {
553
+ scope . setExtraValueForKey ( key , extra ) ;
554
+ } else {
555
+ scope . removeContextForKey ( key ) ;
556
+ }
549
557
} ) ;
550
558
}
551
559
You can’t perform that action at this time.
0 commit comments