Need to modify the props.dataSource === [] condition checked within the updateDataSource method. We need to change the condition like Array.isArray(props.dataSource) && props.dataSource.length === 0 instead of []. Their reasoning is that the equality operator tests object identity, and equality with a new object is always false in JavaScript.