Skip to content

Commit 6ef5622

Browse files
authored
fix: setting loader type error (#1469)
1 parent a3176f2 commit 6ef5622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/renderer/src/modules/settings/title.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const SettingsTitle = ({
4141
icon: iconName,
4242
name: title,
4343
headerIcon,
44-
} = (useLoaderData() || loader?.() || {}) as SettingPageConfig
44+
} = (useLoaderData() || loader || {}) as SettingPageConfig
4545

4646
const usedIcon = headerIcon || iconName
4747
const isInSettingIndependentWindow = useContext(IsInSettingIndependentWindowContext)

0 commit comments

Comments
 (0)