We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 129d733 commit 7d428f4Copy full SHA for 7d428f4
src/elements/common/preview-dialog/PreviewDialog.tsx
@@ -1,7 +1,6 @@
1
import * as React from 'react';
2
import { useIntl } from 'react-intl';
3
import Modal from 'react-modal';
4
-import cloneDeep from 'lodash/cloneDeep';
5
6
import { AxiosRequestConfig, AxiosResponse } from 'axios';
7
import ContentPreview, { ContentPreviewProps } from '../../content-preview';
@@ -62,7 +61,7 @@ const PreviewDialog = ({
62
61
const { formatMessage } = useIntl();
63
const { items }: Collection = currentCollection;
64
const onLoad = (data: unknown): void => {
65
- onPreview(cloneDeep(data));
+ onPreview(data);
66
};
67
68
if (!item || !items) {
0 commit comments