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:
Gori Shanker Suthar authored and meta-codesync[bot] committed 2026-01-04 16:25:02 -08:00
1 parent 89ac112791
commit be91c26934
1 file changed
+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();
}
};