fix: setting loader type error

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei 2024-11-07 16:48:15 +08:00
parent d0d4f05647
commit da8aad7327
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
1 changed files with 1 additions and 1 deletions

View File

@ -12,5 +12,5 @@ export const useSettingPageContext = (): SettingPageContext => {
export const useAvailableSettings = () => {
const ctx = useSettingPageContext()
return useMemo(() => settings.filter((t) => !t.loader().hideIf?.(ctx)), [ctx])
return useMemo(() => settings.filter((t) => !t.loader.hideIf?.(ctx)), [ctx])
}