Explorar o código

fix: 修复 TypeScript 类型错误 - receive_ai_conversations 表达式

537yaha hai 8 meses
pai
achega
31553f85ef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      frontend/app/agent/settings/page.tsx

+ 1 - 1
frontend/app/agent/settings/page.tsx

@@ -229,7 +229,7 @@ export default function SettingsPage({ embedded = false }: SettingsPageProps = {
               <div className="flex items-center space-x-2">
                 <Checkbox
                   id="receive_ai_conversations"
-                  checked={!profile?.receive_ai_conversations ?? false}
+                  checked={!(profile?.receive_ai_conversations ?? false)}
                   onCheckedChange={async (checked) => {
                     if (userId) {
                       try {