Hide toggle arrows in owners list mode
Brian Vaughn committed
Apr 9, 2019 at 21:35 UTC
61203f77cf850b07a6da57ea4257bcfeea200ae5
1 file changed
+4
-1
src/devtools/views/Components/Element.js
+4
-1
@@ -30,6 +30,7 @@ export default function ElementView({ data, index, style }: Props) {
30
const {
31
baseDepth,
32
getElementAtIndex,
33
+ ownerStack,
34
selectOwner,
35
selectedElementID,
36
selectElementByID,
@@ -136,7 +137,9 @@ export default function ElementView({ data, index, style }: Props) {
137
marginBottom: `-${style.height}px`,
138
}}
139
>
139
- <ExpandCollapseToggle element={element} store={store} />
140
+ {ownerStack.length === 0 ? (
141
+ <ExpandCollapseToggle element={element} store={store} />
142
+ ) : null}
143
<span className={styles.Component} ref={ref}>
144
<DisplayName displayName={displayName} id={((id: any): number)} />
145
{key && (