Skip to content

Commit 7d428f4

Browse files
authored
fix(content-explorer): Fix pdf infinite spinning loader issue (#4422)
fix(content-explorer): Remove cloneDeep from onPreview call
1 parent 129d733 commit 7d428f4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/elements/common/preview-dialog/PreviewDialog.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as React from 'react';
22
import { useIntl } from 'react-intl';
33
import Modal from 'react-modal';
4-
import cloneDeep from 'lodash/cloneDeep';
54

65
import { AxiosRequestConfig, AxiosResponse } from 'axios';
76
import ContentPreview, { ContentPreviewProps } from '../../content-preview';
@@ -62,7 +61,7 @@ const PreviewDialog = ({
6261
const { formatMessage } = useIntl();
6362
const { items }: Collection = currentCollection;
6463
const onLoad = (data: unknown): void => {
65-
onPreview(cloneDeep(data));
64+
onPreview(data);
6665
};
6766

6867
if (!item || !items) {

0 commit comments

Comments
 (0)