Log if `<Timeline>` row count is 0
Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com>
This commit is contained in:
parent
bbe4ef8673
commit
e2825a7fbf
|
@ -15,6 +15,8 @@ import {
|
||||||
} from 'react-virtualized';
|
} from 'react-virtualized';
|
||||||
import Measure from 'react-measure';
|
import Measure from 'react-measure';
|
||||||
|
|
||||||
|
import * as log from '../../logging/log';
|
||||||
|
|
||||||
import { ScrollDownButton } from './ScrollDownButton';
|
import { ScrollDownButton } from './ScrollDownButton';
|
||||||
|
|
||||||
import type { AssertProps, LocalizerType, ThemeType } from '../../types/Util';
|
import type { AssertProps, LocalizerType, ThemeType } from '../../types/Util';
|
||||||
|
@ -1283,6 +1285,7 @@ export class Timeline extends React.PureComponent<PropsType, StateType> {
|
||||||
const scrollToIndex = this.getScrollTarget();
|
const scrollToIndex = this.getScrollTarget();
|
||||||
|
|
||||||
if (!items || rowCount === 0) {
|
if (!items || rowCount === 0) {
|
||||||
|
log.error('<Timeline> row count is 0');
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue