diff --git a/src/devtools/views/Components/SelectedElement.js b/src/devtools/views/Components/SelectedElement.js index b214c7d0d1..5b404b3575 100644 --- a/src/devtools/views/Components/SelectedElement.js +++ b/src/devtools/views/Components/SelectedElement.js @@ -13,7 +13,6 @@ import InspectedElementTree from './InspectedElementTree'; import { InspectedElementContext } from './InspectedElementContext'; import ViewElementSourceContext from './ViewElementSourceContext'; import NativeStyleEditor from './NativeStyleEditor'; -import { NativeStyleContext } from './NativeStyleEditor/context'; import Toggle from '../Toggle'; import Badge from './Badge'; import { @@ -264,7 +263,6 @@ function InspectedElementView({ const { ownerID } = useContext(TreeStateContext); const bridge = useContext(BridgeContext); const store = useContext(StoreContext); - const { getStyleAndLayout } = useContext(NativeStyleContext); const inspectContextPath = useCallback( (path: Array) => { @@ -336,21 +334,12 @@ function InspectedElementView({ }; } - let filteredProps = props; - if (filteredProps !== null) { - const maybeStyleAndLayout = getStyleAndLayout(id); - // Hide props.style if we are showing the style editor UI. - if (maybeStyleAndLayout !== null && maybeStyleAndLayout.style !== null) { - delete filteredProps['style']; - } - } - return (