Skip to content

Commit

Permalink
hide template preview if not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Phanatic committed Oct 17, 2024
1 parent cd565b5 commit c5dedf1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/scenes/surveys/Surveys.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ export function Surveys(): JSX.Element {
/>
<div className="flex-1" />
<div className="mt-10 mr-5">
<SurveyAppearancePreview survey={templatedSurvey} previewPageIndex={0} />
{globalSurveyAppearanceConfigAvailable && (
<SurveyAppearancePreview survey={templatedSurvey} previewPageIndex={0} />
)}
</div>
</div>
</>
Expand Down

0 comments on commit c5dedf1

Please sign in to comment.