Skip to content

Commit

Permalink
fix(surveys): unexpected survey response type breaks results page (#1…
Browse files Browse the repository at this point in the history
…8731)

make sure react child object error doesn't occur
  • Loading branch information
liyiy authored Nov 17, 2023
1 parent ecbdd9c commit 4164eee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified frontend/__snapshots__/scenes-app-surveys--survey-templates.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/src/scenes/surveys/surveyViewViz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ export function OpenTextViz({
return (
<div key={`open-text-${questionIndex}-${i}`} className="masonry-item border rounded">
<div className="masonry-item-text text-center italic font-semibold px-5 py-4">
{event.properties[surveyResponseField]}
{JSON.stringify(event.properties[surveyResponseField])}
</div>
<div className="bg-bg-light items-center px-5 py-4 border-t rounded-b truncate w-full">
<PersonDisplay
Expand Down

0 comments on commit 4164eee

Please sign in to comment.