fix: setting loader type error (#1469)
This commit is contained in:
parent
a3176f2783
commit
6ef5622a32
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue