From e2825a7fbf73d32336c55883100f2d5f473a0566 Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Thu, 10 Feb 2022 12:27:56 -0800 Subject: [PATCH] Log if `` row count is 0 Co-authored-by: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> --- ts/components/conversation/Timeline.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts/components/conversation/Timeline.tsx b/ts/components/conversation/Timeline.tsx index 872fc9e16..59ce3e218 100644 --- a/ts/components/conversation/Timeline.tsx +++ b/ts/components/conversation/Timeline.tsx @@ -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'; @@ -1283,6 +1285,7 @@ export class Timeline extends React.PureComponent { const scrollToIndex = this.getScrollTarget(); if (!items || rowCount === 0) { + log.error(' row count is 0'); return null; }