diff --git a/packages/server/graphql/mutations/helpers/updateReflectionLocation/updateSmartGroupTitle.ts b/packages/server/graphql/mutations/helpers/updateReflectionLocation/updateSmartGroupTitle.ts index 90aab3da6cc..d21c7dd713d 100644 --- a/packages/server/graphql/mutations/helpers/updateReflectionLocation/updateSmartGroupTitle.ts +++ b/packages/server/graphql/mutations/helpers/updateReflectionLocation/updateSmartGroupTitle.ts @@ -7,7 +7,7 @@ const updateSmartGroupTitle = async (reflectionGroupId: string, smartTitle: stri .updateTable('RetroReflectionGroup') .set({ smartTitle, - title: sql`CASE WHEN "smartTitle" = "title" THEN ${smartTitle} ELSE "title" END` + title: sql`CASE WHEN "smartTitle" = "title" OR "title" IS NULL THEN ${smartTitle} ELSE "title" END` }) .where('id', '=', reflectionGroupId) .execute()