fix: setting loader type error (#1469)

This commit is contained in:
Kieran Cui 2024-11-07 18:54:26 +08:00 committed by GitHub
parent a3176f2783
commit 6ef5622a32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ export const SettingsTitle = ({
icon: iconName,
name: title,
headerIcon,
} = (useLoaderData() || loader?.() || {}) as SettingPageConfig
} = (useLoaderData() || loader || {}) as SettingPageConfig
const usedIcon = headerIcon || iconName
const isInSettingIndependentWindow = useContext(IsInSettingIndependentWindowContext)