Skip to content

Commit da8aad7

Browse files
committed
fix: setting loader type error
Signed-off-by: Innei <tukon479@gmail.com>
1 parent d0d4f05 commit da8aad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/renderer/src/modules/settings/hooks/use-setting-ctx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ export const useSettingPageContext = (): SettingPageContext => {
1212

1313
export const useAvailableSettings = () => {
1414
const ctx = useSettingPageContext()
15-
return useMemo(() => settings.filter((t) => !t.loader().hideIf?.(ctx)), [ctx])
15+
return useMemo(() => settings.filter((t) => !t.loader.hideIf?.(ctx)), [ctx])
1616
}

0 commit comments

Comments
 (0)