Hide toggle arrows in owners list mode

This commit is contained in:
Brian Vaughn
2019-04-10 07:42:32 -07:00
parent 55b3635f28
commit 61203f77cf
+4 -1
View File
@@ -30,6 +30,7 @@ export default function ElementView({ data, index, style }: Props) {
const {
baseDepth,
getElementAtIndex,
ownerStack,
selectOwner,
selectedElementID,
selectElementByID,
@@ -136,7 +137,9 @@ export default function ElementView({ data, index, style }: Props) {
marginBottom: `-${style.height}px`,
}}
>
<ExpandCollapseToggle element={element} store={store} />
{ownerStack.length === 0 ? (
<ExpandCollapseToggle element={element} store={store} />
) : null}
<span className={styles.Component} ref={ref}>
<DisplayName displayName={displayName} id={((id: any): number)} />
{key && (