mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix copy-paste error in DevToolsRuntimeSettings (#55010)
Summary: Fixes a copy-paste error in `DevToolsRuntimeSettings::setReloadAndProfileConfig` where `recordChangeDescriptions` was guarded by the wrong optional field. The correct conditional check is already used in https://github.com/facebook/react-native/blob/main/packages/react-native/React/CoreModules/RCTDevToolsRuntimeSettingsModule.mm#L28 ## Changelog: [INTERNAL] [FIXED] Fix incorrect optional field check in DevToolsRuntimeSettings Pull Request resolved: https://github.com/facebook/react-native/pull/55010 Test Plan: Code inspection only – trivial copy-paste fix with no behavior change outside correctly applying `recordChangeDescriptions` when present. Reviewed By: mdvacca Differential Revision: D90011483 Pulled By: cortinico fbshipit-source-id: c00c3340625a11673a7e9011f1e373474d5a37e3
This commit is contained in:
1 parent
89ac112791
commit
be91c26934
1 file changed
+1
-1
+1
-1
@@ -14,7 +14,7 @@ void DevToolsRuntimeSettings::setReloadAndProfileConfig(
|
||||
if (config.shouldReloadAndProfile.has_value()) {
|
||||
_config.shouldReloadAndProfile = config.shouldReloadAndProfile.value();
|
||||
}
|
||||
if (config.shouldReloadAndProfile.has_value()) {
|
||||
if (config.recordChangeDescriptions.has_value()) {
|
||||
_config.recordChangeDescriptions = config.recordChangeDescriptions.value();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user