Skip to content

Commit

Permalink
fix(knowledgebase): Background image preview not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
Anu-Ujin committed Dec 11, 2023
1 parent b0e44da commit e721839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/erxes-ui/src/components/AttachmentWithPreview.tsx
Expand Up @@ -187,7 +187,7 @@ class AttachmentWithPreview extends React.Component<Props, State> {
'&embedded=true'
}
width="100%"
></iframe>
/>
);
};

Expand Down Expand Up @@ -303,7 +303,7 @@ class AttachmentWithPreview extends React.Component<Props, State> {
renderAttachmentPreview() {
const { onLoad, attachment, icon } = this.props;

if (icon) {
if (!attachment.url && icon) {
return <Icon icon={icon} onClick={this.onToggle} />;
}

Expand Down

0 comments on commit e721839

Please sign in to comment.