Log if <Timeline>
row count is 0
This commit is contained in:
parent
4e707c1b9a
commit
7ff0aeacb8
1 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,8 @@ import {
|
|||
} from 'react-virtualized';
|
||||
import Measure from 'react-measure';
|
||||
|
||||
import * as log from '../../logging/log';
|
||||
|
||||
import { ScrollDownButton } from './ScrollDownButton';
|
||||
|
||||
import type { AssertProps, LocalizerType, ThemeType } from '../../types/Util';
|
||||
|
@ -1289,6 +1291,7 @@ export class Timeline extends React.PureComponent<PropsType, StateType> {
|
|||
const scrollToIndex = this.getScrollTarget();
|
||||
|
||||
if (!items || rowCount === 0) {
|
||||
log.error('<Timeline> row count is 0');
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue