mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Fix flow error
This commit is contained in:
@@ -218,7 +218,7 @@ export default class ThemableEventsTree extends Component<EventsTreeProps, *> {
|
||||
onHeightsChanged(cb: ?() => void) {
|
||||
this.forceUpdate(() => {
|
||||
// Help the developer updating react-sortable-tree
|
||||
if (!this._list.wrappedInstance.recomputeRowHeights) {
|
||||
if (this._list && !this._list.wrappedInstance.recomputeRowHeights) {
|
||||
console.error(
|
||||
'recomputeRowHeights not on wrappedInstance, this must be fixed after updating react-virtualized/react-sortable-tree'
|
||||
);
|
||||
@@ -236,7 +236,7 @@ export default class ThemableEventsTree extends Component<EventsTreeProps, *> {
|
||||
forceEventsUpdate(cb: ?() => void) {
|
||||
this.setState(this._eventsToTreeData(this.props.events), () => {
|
||||
// Help the developer updating react-sortable-tree
|
||||
if (!this._list.wrappedInstance.recomputeRowHeights) {
|
||||
if (this._list && !this._list.wrappedInstance.recomputeRowHeights) {
|
||||
console.error(
|
||||
'recomputeRowHeights not on wrappedInstance, this must be fixed after updating react-virtualized/react-sortable-tree'
|
||||
);
|
||||
|
Reference in New Issue
Block a user