Skip to content

Commit

Permalink
(fix) Show Audit Details tab only for existing form schemas (openmrs#215
Browse files Browse the repository at this point in the history
)
  • Loading branch information
denniskigen committed Jan 2, 2024
1 parent 758f7de commit 61d7f73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/form-editor/form-editor.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ const FormEditor: React.FC = () => {
<TabList aria-label="Form previews">
<Tab>{t('preview', 'Preview')}</Tab>
<Tab>{t('interactiveBuilder', 'Interactive Builder')}</Tab>
{<Tab>{form && t('auditDetails', 'Audit Details')}</Tab>}
{form && <Tab>{t('auditDetails', 'Audit Details')}</Tab>}
</TabList>
<TabPanels>
<TabPanel>
Expand Down
2 changes: 1 addition & 1 deletion src/form-builder-admin-card-link.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const FormBuilderCardLink: React.FC = () => {
<ClickableTile href={`${window.spaBase}/form-builder`} target="_blank" rel="noopener noreferrer">
<div>
<div className="heading">{header}</div>
<div className="content">{t('formBuilder', 'Form Builder')}</div>
<div className="content">{t('formBuilder', 'Form builder')}</div>
</div>
<div className="iconWrapper">
<ArrowRight size={16} />
Expand Down

0 comments on commit 61d7f73

Please sign in to comment.