Skip to content

Commit f731691

Browse files
committed
chore: try to fail the diff viewer test
1 parent 11cde0b commit f731691

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

admin/src/components/ConfigDiff/index.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import { useIntl } from 'react-intl';
1111
*
1212
* @see https://github.com/Aeolun/react-diff-viewer-continued/issues/43
1313
*/
14-
let ReactDiffViewer;
15-
if (typeof RDV.default !== 'undefined') {
16-
ReactDiffViewer = RDV.default;
17-
} else {
18-
ReactDiffViewer = RDV;
19-
}
14+
// let ReactDiffViewer;
15+
// if (typeof RDV.default !== 'undefined') {
16+
// ReactDiffViewer = RDV.default;
17+
// } else {
18+
// ReactDiffViewer = RDV;
19+
// }
2020

2121
import {
2222
Modal,
@@ -48,7 +48,7 @@ const ConfigDiff = ({ oldValue, newValue, configName, trigger }) => {
4848
</Grid.Item>
4949
</Grid.Root>
5050
<Typography variant="pi">
51-
<ReactDiffViewer
51+
<RDV
5252
oldValue={JSON.stringify(oldValue, null, 2)}
5353
newValue={JSON.stringify(newValue, null, 2)}
5454
splitView

0 commit comments

Comments
 (0)