Skip to content

Commit 51eaec0

Browse files
committed
fix: Pass mutable copy to emitModuleTableUpdate
1 parent 5ae1aa2 commit 51eaec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNSentry.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ - (void)swizzleInvokeWithBridge:(Class)class {
253253
for (id param in arguments) {
254254
if ([param isKindOfClass:NSDictionary.class] && param[@"__sentry_stack"]) {
255255
[_self.moduleMapping setValue:[NSString stringWithFormat:@"%@", [module class]] forKey:[NSString stringWithFormat:@"%@", param[@"__sentry_moduleID"]]];
256-
[RNSentryEventEmitter emitModuleTableUpdate:_self.moduleMapping];
256+
[RNSentryEventEmitter emitModuleTableUpdate:_self.moduleMapping.mutableCopy];
257257
[[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithUnsignedInteger:callNativeModuleAddress] forKey:@"RNSentry.__sentry_address"];
258258
[[NSUserDefaults standardUserDefaults] setObject:[RCTConvert NSString:param[@"__sentry_stack"]] forKey:@"RNSentry.__sentry_stack"];
259259
[[NSUserDefaults standardUserDefaults] synchronize];

0 commit comments

Comments
 (0)