fix: hide ai settings if not enabled

This commit is contained in:
Stephen Zhou 2025-07-24 16:26:14 +08:00
parent e825b3ed36
commit 8d5502cf28
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ export const loader = defineSettingPageData({
icon: iconName,
name: "titles.ai",
priority,
hideIf: (_ctx, serverConfigs) => !serverConfigs?.AI_CHAT_ENABLED,
})
export function Component() {