fix(plugins/developer-settings): crash on copy React DevTools version

This commit is contained in:
PalmDevs 2025-07-18 01:55:52 +07:00
parent 96121e31e0
commit 9c8d55af21
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA
2 changed files with 2 additions and 2 deletions

View file

@ -74,7 +74,7 @@ declare global {
var __REACT_DEVTOOLS_GLOBAL_HOOK__: unknown | undefined
var __REACT_DEVTOOLS__:
| {
version: string
version: number
exports: {
connectToDevTools(opts: {
host?: string

View file

@ -11,7 +11,7 @@ const RDTVersionSetting: SettingsItem = CopyableSetting(
title: () => 'React DevTools',
usePredicate: () => RDTContext.active,
},
() => __REACT_DEVTOOLS__!.version,
() => String(__REACT_DEVTOOLS__!.version),
)
export default RDTVersionSetting