Skip to content

Commit

Permalink
fix(surveys): survey titles with apostrophe should not break query (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
liyiy authored Oct 1, 2023
1 parent c1c7d98 commit be93969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/scenes/surveys/surveyLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export const surveyLogic = kea<surveyLogicType>([
kind: NodeKind.EventsQuery,
select: ['*', `properties.${SURVEY_RESPONSE_PROPERTY}`, 'timestamp', 'person'],
orderBy: ['timestamp DESC'],
where: [`event == 'survey sent' or event == '${survey.name} survey sent'`],
where: [`event == 'survey sent'`],
after: createdAt,
properties: [
{
Expand Down

0 comments on commit be93969

Please sign in to comment.