File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -474,7 +474,7 @@ function createTree(
474
474
const lastClass = currentFiber . child . stateNode . classList [
475
475
currentFiber . child . stateNode . classList . length - 1
476
476
] ;
477
- if ( lastClass . includes ( 'fromLinkFiber' ) ) {
477
+ if ( typeof lastClass [ lastClass . length - 1 ] === 'string' ) {
478
478
currentFiber . child . stateNode . classList . remove ( lastClass ) ;
479
479
}
480
480
}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import { createGenerateClassName } from "@material-ui/styles";
11
11
12
12
let copyInstances = 0 ;
13
13
const circularComponentTable = new Set < Tree > ( ) ;
14
- let componentNames = { }
14
+ let componentNames = { } ;
15
15
16
16
// Removes unserializable state data such as functions
17
17
function scrubUnserializableMembers ( tree : Tree ) : Tree {
@@ -90,7 +90,7 @@ class Tree {
90
90
componentNames = { } ;
91
91
}
92
92
//check for duplicate
93
- else if ( componentNames [ name ] !== undefined ) {
93
+ else if ( componentNames [ name ] ) {
94
94
const count = componentNames [ name ] + 1 ;
95
95
const newName = name + count ;
96
96
componentNames [ name ] = count ;
You can’t perform that action at this time.
0 commit comments