Minor PR fixes

pull/2000/head
warrickct 3 years ago
parent 97fe0c7a7a
commit f91e2c4edd

@ -82,12 +82,9 @@ export class LeftPaneMessageSection extends React.Component<Props, State> {
throw new Error('renderRow: Tried to render without conversations'); throw new Error('renderRow: Tried to render without conversations');
} }
let conversation; const conversation = conversations[index];
if (conversations?.length) {
conversation = conversations[index];
}
if (!conversation) { if (!conversation) {
window?.log?.info('No conversation found at index');
return null; return null;
} }

@ -2,7 +2,7 @@ import _ from 'lodash';
import { SignalService } from '../protobuf'; import { SignalService } from '../protobuf';
import { TTL_DEFAULT } from '../session/constants'; import { TTL_DEFAULT } from '../session/constants';
import { SNodeAPI } from '../session/snode_api'; import { SNodeAPI } from '../session/snode_api';
import { CallManager, UserUtils } from '../session/utils'; import { CallManager } from '../session/utils';
import { removeFromCache } from './cache'; import { removeFromCache } from './cache';
import { EnvelopePlus } from './types'; import { EnvelopePlus } from './types';

Loading…
Cancel
Save