File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
packages/react-devtools-shared/src/backend/NativeStyleEditor Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -213,10 +213,7 @@ function renameStyle(
213
213
instance . setNativeProps ( { style : newStyle } ) ;
214
214
} else if ( isArray ( style ) ) {
215
215
const lastIndex = style . length - 1 ;
216
- if (
217
- typeof style [ lastIndex ] === 'object' &&
218
- ! isArray ( style [ lastIndex ] )
219
- ) {
216
+ if ( typeof style [ lastIndex ] === 'object' && ! isArray ( style [ lastIndex ] ) ) {
220
217
customStyle = shallowClone ( style [ lastIndex ] ) ;
221
218
delete customStyle [ oldName ] ;
222
219
if ( newName ) {
@@ -299,10 +296,7 @@ function setStyle(
299
296
instance . setNativeProps ( { style : newStyle } ) ;
300
297
} else if ( isArray ( style ) ) {
301
298
const lastLength = style . length - 1 ;
302
- if (
303
- typeof style [ lastLength ] === 'object' &&
304
- ! isArray ( style [ lastLength ] )
305
- ) {
299
+ if ( typeof style [ lastLength ] === 'object' && ! isArray ( style [ lastLength ] ) ) {
306
300
agent . overrideValueAtPath ( {
307
301
type : 'props' ,
308
302
id,
You can’t perform that action at this time.
0 commit comments