Skip to content

Commit

Permalink
fix: remove ai from summary url if no ai env var (#9895)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickoferrall authored Jul 1, 2024
1 parent 486f670 commit 4413142
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/client/mutations/EndRetrospectiveMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ export const endRetrospectiveTeamOnNext: OnNextHandler<
} else {
const reflections = reflectionGroups.flatMap((group) => group.reflections) // reflectionCount hasn't been calculated yet so check reflections length
const hasMoreThanOneReflection = reflections.length > 1
const hasOpenAISummary = hasMoreThanOneReflection && !organization.featureFlags.noAISummary
const hasOpenAISummary =
hasMoreThanOneReflection &&
!organization.featureFlags.noAISummary &&
window.__ACTION__.hasOpenAI
const hasTeamHealth = phases.some((phase) => phase.phaseType === 'TEAM_HEALTH')
const pathname = `/new-summary/${meetingId}`
const search = new URLSearchParams()
Expand Down

0 comments on commit 4413142

Please sign in to comment.