File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -244,21 +244,21 @@ class ObjectTable extends React.PureComponent {
244244 }
245245
246246 getRowFromRefs ( rowId ) {
247- // Dumb hack to clean up existing hack.
247+ // Dumb hack to clean up existing hack. Accesses underlying elements wrapped in React DnD v8 HOCs.
248248 let row = this . refs [ `object-${ rowId } ` ]
249249 // Unwrap
250- while ( row . decoratedComponentInstance ) {
251- row = row . decoratedComponentInstance
250+ while ( row . decoratedRef ) {
251+ row = row . decoratedRef . current
252252 }
253253 return row
254254 }
255255
256256 getCellFromRefs ( rowId , columnKey ) {
257- // Dumb hack to clean up existing hack.
257+ // Dumb hack to clean up existing hack. Accesses underlying elements wrapped in React DnD v8 HOCs.
258258 let cell = this . getRowFromRefs ( rowId ) . refs [ `column-${ columnKey } ` ]
259259 // Unwrap
260- while ( cell . decoratedComponentInstance ) {
261- cell = cell . decoratedComponentInstance
260+ while ( cell . decoratedRef ) {
261+ cell = cell . decoratedRef . current
262262 }
263263 return cell
264264 }
You can’t perform that action at this time.
0 commit comments