Skip to content

Commit d6d5707

Browse files
committed
fix: fixing args and lint
1 parent fe96d80 commit d6d5707

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/react-devtools-shared/src/backend/legacy/renderer.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ import {
1414
ElementTypeHostComponent,
1515
ElementTypeOtherOrUnknown,
1616
} from 'react-devtools-shared/src/types';
17-
import {getUID, utfEncodeString, printOperationsArray, formatDataForPreview} from '../../utils';
17+
import {
18+
getUID,
19+
utfEncodeString,
20+
printOperationsArray,
21+
formatDataForPreview,
22+
} from '../../utils';
1823
import {cleanForBridge, copyToClipboard, copyWithSet} from '../utils';
1924
import {getDisplayName, getInObject} from 'react-devtools-shared/src/utils';
2025
import {
@@ -742,7 +747,7 @@ export function attach(
742747

743748
const element = internalInstance._currentElement;
744749
if (element !== null) {
745-
props = formatDataForPreview(element.props);
750+
props = formatDataForPreview(element.props, false);
746751
source = element._source != null ? element._source : null;
747752

748753
let owner = element._owner;

packages/react-devtools-shared/src/backend/renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2383,7 +2383,7 @@ export function attach(
23832383
// TODO Review sanitization approach for the below inspectable values.
23842384
context,
23852385
hooks,
2386-
props: formatDataForPreview(memoizedProps),
2386+
props: formatDataForPreview(memoizedProps, false),
23872387
state: usesHooks ? null : memoizedState,
23882388

23892389
// List of owners

0 commit comments

Comments
 (0)