catch some errors

main
Joost Wooning 2022-02-14 15:55:11 +01:00
parent b8f8d21478
commit a992fdedf4
3 changed files with 5 additions and 3 deletions

View File

@ -488,7 +488,9 @@ export default class CanExplorer extends Component {
this.setState({ firstFrameTime });
}
this.addMessagesToDataCache(part, newMessages, newThumbnails);
if (newMessages) {
this.addMessagesToDataCache(part, newMessages, newThumbnails);
}
// const messages = this.addAndRehydrateMessages(
// newMessages,

View File

@ -58,7 +58,7 @@ export default class CanGraphList extends Component {
}
return;
}
const rect = this.plotListRef.getBoundingClientRect();
const rect = this.plotListRef.current.getBoundingClientRect();
const draggingGraph = this.determineDraggingGraph();
if (draggingGraph) {
draggingGraph.ref.hidden = true;

View File

@ -29,7 +29,7 @@ export default class MessageBytes extends Component {
this.props.message.entries.length - 1
];
return nextLastEntry.hexData !== curLastEntry.hexData;
return !nextLastEntry || !curLastEntry || nextLastEntry.hexData !== curLastEntry.hexData;
}
return nextProps.seekTime !== this.props.seekTime;
}