diff --git a/packages/client/components/ReflectionGroup/ReflectionGroupTitleEditor.tsx b/packages/client/components/ReflectionGroup/ReflectionGroupTitleEditor.tsx index 46fd8a0af27..c2927fb7536 100644 --- a/packages/client/components/ReflectionGroup/ReflectionGroupTitleEditor.tsx +++ b/packages/client/components/ReflectionGroup/ReflectionGroupTitleEditor.tsx @@ -181,12 +181,7 @@ const ReflectionGroupTitleEditor = (props: Props) => { {isLoading ? ( - + ) : ( diff --git a/packages/server/graphql/mutations/helpers/generateAIGroupTitle.ts b/packages/server/graphql/mutations/helpers/generateAIGroupTitle.ts index eae24996321..338221da6b5 100644 --- a/packages/server/graphql/mutations/helpers/generateAIGroupTitle.ts +++ b/packages/server/graphql/mutations/helpers/generateAIGroupTitle.ts @@ -18,11 +18,9 @@ const generateAIGroupTitle = async ( ) => { const manager = new OpenAIServerManager() const aiTitle = await manager.generateGroupTitle(reflections) - if (!aiTitle) { - standardError(new Error('Failed to generate AI title')) - return - } - await updateSmartGroupTitle(reflectionGroupId, aiTitle) + const newTitle = aiTitle ?? reflections[0]?.plaintextContent ?? '' + if (!aiTitle) standardError(new Error('Failed to generate AI title')) + await updateSmartGroupTitle(reflectionGroupId, newTitle) dataLoader.get('retroReflectionGroups').clear(reflectionGroupId) publish( SubscriptionChannel.MEETING,