Skip to content

Commit

Permalink
fixed eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
konzz committed Dec 11, 2024
1 parent 25eedf2 commit 45ea435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/react/Forms/components/MediaField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ const MediaField = (props: MediaFieldProps) => {
</div>

{(() => {
console.log(file, type);
if (
file?.supportingFile?.mimetype?.search(/image\/*/) !== -1 ||
(file?.data && file?.supportingFile?.mimetype?.search(/image\/*/) !== -1) ||
type === MediaModalType.Image
) {
return file?.fileURL ? <ImageViewer src={file.fileURL} alt="media" /> : null;
Expand All @@ -135,6 +134,7 @@ const MediaField = (props: MediaFieldProps) => {
/>
);
}
return null;
})()}

<MediaModal
Expand Down

0 comments on commit 45ea435

Please sign in to comment.