don't render markdown preview unless user wants to see it

This commit is contained in:
keyan 2022-02-10 11:51:44 -06:00
parent 0aee683f0f
commit 37f8784789
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ export function MarkdownInput ({ label, groupClassName, ...props }) {
</div>
<div className={tab !== 'preview' ? 'd-none' : 'form-group'}>
<div className={`${styles.text} form-control`}>
<Text>{meta.value}</Text>
{tab === 'preview' && <Text>{meta.value}</Text>}
</div>
</div>
</div>