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(
187
187
if ( ! currentFiber ) return null ;
188
188
if ( ! tree ) return tree ;
189
189
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
- }
200
190
201
191
// These have the newest state. We update state and then
202
192
// called updateSnapshotTree()
@@ -399,7 +389,7 @@ function createTree(
399
389
pointer = pointer . child
400
390
}
401
391
} else {
402
- if ( currentFiber . child && currentFiber . child . stateNode ) {
392
+ if ( currentFiber . child && currentFiber . child . stateNode && currentFiber . child . stateNode . setAttribute ) {
403
393
rtid = "fromLinkFiber" + rtidCounter
404
394
currentFiber . child . stateNode . setAttribute ( "id" , rtid ) ;
405
395
}
@@ -431,7 +421,7 @@ function createTree(
431
421
pointer = pointer . child
432
422
}
433
423
} else {
434
- if ( currentFiber . child && currentFiber . child . stateNode ) {
424
+ if ( currentFiber . child && currentFiber . child . stateNode && currentFiber . child . stateNode . setAttribute ) {
435
425
rtid = "fromLinkFiber" + rtidCounter
436
426
currentFiber . child . stateNode . setAttribute ( "id" , rtid ) ;
437
427
}
You can’t perform that action at this time.
0 commit comments