fix: add missing languageDetection/autoLabeling to getAISettings fallbacks
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 31s
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 31s
The error fallback and non-logged-in fallback in getAISettings were missing languageDetection and autoLabeling fields, creating a union type where these could be undefined — breaking the build. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -199,7 +199,9 @@ const getCachedAISettings = unstable_cache(
|
||||
desktopNotifications: false,
|
||||
anonymousAnalytics: false,
|
||||
theme: 'light' as const,
|
||||
fontSize: 'medium' as const
|
||||
fontSize: 'medium' as const,
|
||||
languageDetection: true,
|
||||
autoLabeling: true,
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -232,7 +234,9 @@ export async function getAISettings(userId?: string) {
|
||||
desktopNotifications: false,
|
||||
anonymousAnalytics: false,
|
||||
theme: 'light' as const,
|
||||
fontSize: 'medium' as const
|
||||
fontSize: 'medium' as const,
|
||||
languageDetection: true,
|
||||
autoLabeling: true,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user