Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1465 | concept clone | not showing close bu…
Browse files Browse the repository at this point in the history
…tton in preview
  • Loading branch information
snyaggarwal committed Feb 14, 2023
1 parent 970bbd3 commit b839c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/CloneToSource.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class CloneToSource extends React.Component {
)}
</Popper>
<Dialog open={openDialog} onClose={this.handleDialogClose} scroll='paper' fullWidth maxWidth='md' disableEscapeKeyDown={isAdding}>
<DialogTitleWithCloseButton disabled={isAdding} onClose={this.handleDialogClose}>
<DialogTitleWithCloseButton disabled={isAdding} onClose={previewConcept ? null : this.handleDialogClose}>
{
previewConcept &&
<Button size='small' startIcon={<BackIcon fontSize='inherit'/>} onClick={this.onPreviewClose} style={{marginRight: '10px'}}>
Expand Down

0 comments on commit b839c6d

Please sign in to comment.