File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -187,16 +187,6 @@ function createTree(
187187 if ( ! currentFiber ) return null ;
188188 if ( ! tree ) return tree ;
189189
190- if ( currentFiber . tag === 0 || currentFiber . tag === 1 || currentFiber . tag === 2 ) {
191- if ( currentFiber . child && currentFiber . child . stateNode ) {
192- // console.log('Sanjays algo', currentFiber)
193- rtid = "fromLinkFiber" + rtidCounter
194- // if (currentFiber.child.stateNode.setAttribute) {
195- currentFiber . child . stateNode . setAttribute ( "id" , rtid ) ;
196- // }
197- }
198- rtidCounter ++ ;
199- }
200190
201191 // These have the newest state. We update state and then
202192 // called updateSnapshotTree()
@@ -399,7 +389,7 @@ function createTree(
399389 pointer = pointer . child
400390 }
401391 } else {
402- if ( currentFiber . child && currentFiber . child . stateNode ) {
392+ if ( currentFiber . child && currentFiber . child . stateNode && currentFiber . child . stateNode . setAttribute ) {
403393 rtid = "fromLinkFiber" + rtidCounter
404394 currentFiber . child . stateNode . setAttribute ( "id" , rtid ) ;
405395 }
@@ -431,7 +421,7 @@ function createTree(
431421 pointer = pointer . child
432422 }
433423 } else {
434- if ( currentFiber . child && currentFiber . child . stateNode ) {
424+ if ( currentFiber . child && currentFiber . child . stateNode && currentFiber . child . stateNode . setAttribute ) {
435425 rtid = "fromLinkFiber" + rtidCounter
436426 currentFiber . child . stateNode . setAttribute ( "id" , rtid ) ;
437427 }
You can’t perform that action at this time.
0 commit comments