Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit 78d6a78

Browse files
2007heavennchevobbe
authored andcommitted
[ObjectInspector] Show longString label
1 parent f2d8362 commit 78d6a78

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

packages/devtools-reps/src/object-inspector/component.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -290,21 +290,11 @@ class ObjectInspector extends Component {
290290
};
291291
}
292292

293-
if (nodeIsLongString(item)) {
294-
const repProps = {
295-
...this.props,
296-
showFullText: expanded,
297-
};
298-
299-
return {
300-
value: Utils.renderRep(item, repProps)
301-
};
302-
}
303-
304293
if (
305294
nodeHasProperties(item)
306295
|| nodeHasAccessors(item)
307296
|| nodeIsMapEntry(item)
297+
|| nodeIsLongString(item)
308298
|| isPrimitive
309299
) {
310300
let repProps = {...this.props};
@@ -317,6 +307,8 @@ class ObjectInspector extends Component {
317307
repProps.mode = MODE.TINY;
318308
}
319309

310+
repProps.showFullText = nodeIsLongString(item) && expanded;
311+
320312
return {
321313
label,
322314
value: Utils.renderRep(item, repProps)

0 commit comments

Comments
 (0)