Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
hiding cutsite info table when there are 0 cutsites
Browse files Browse the repository at this point in the history
  • Loading branch information
tnrich committed Mar 16, 2021
1 parent 9f3f750 commit e36d2bf
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions src/helperComponents/PropertiesDialog/SingleEnzymeCutsiteInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,30 @@ export default function SingleEnzymeCutsiteInfo({
/>
)}
<br></br>
<div>
<DataTable
style={{ minHeight: 0, maxHeight: 200 }}
selectedIds={selectedAnnotationId}
maxHeight={300}
onRowSelect={onRowSelect}
formName="cutLocations"
isSingleSelect
compact
noRouter
minimalStyle
scrollToSelectedRowRelativeToDom
noHeader
isSimple
noFullscreenButton
isInfinite
withSearch={false}
withFilter={false}
schema={schema}
entities={entities}
/>
</div>
{entities && !!entities.length && (
<div>
<DataTable
style={{ minHeight: 0, maxHeight: 200 }}
selectedIds={selectedAnnotationId}
maxHeight={300}
onRowSelect={onRowSelect}
formName="cutLocations"
isSingleSelect
compact
noRouter
minimalStyle
scrollToSelectedRowRelativeToDom
noHeader
isSimple
noFullscreenButton
isInfinite
withSearch={false}
withFilter={false}
schema={schema}
entities={entities}
/>
</div>
)}
</div>
</div>
);
Expand Down

0 comments on commit e36d2bf

Please sign in to comment.