From be93969a1bccb07334ee00f7519b24a876bbc0e5 Mon Sep 17 00:00:00 2001
From: Li Yi Yu
Date: Sun, 1 Oct 2023 16:20:10 -0400
Subject: [PATCH] fix(surveys): survey titles with apostrophe should not break
query (#17704)
---
frontend/src/scenes/surveys/surveyLogic.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontend/src/scenes/surveys/surveyLogic.tsx b/frontend/src/scenes/surveys/surveyLogic.tsx
index 2d03f7a707a8f..361caa433b558 100644
--- a/frontend/src/scenes/surveys/surveyLogic.tsx
+++ b/frontend/src/scenes/surveys/surveyLogic.tsx
@@ -360,7 +360,7 @@ export const surveyLogic = kea([
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: [
{