Fix app crash when logTabData does not exist in store (#2959)

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala authored and GitHub committed 2021-06-04 08:51:11 -04:00
1 parent 9852e5cfd8
commit 573a635e29
1 file changed
+1 -1
+1 -1
View File
@@ -106,7 +106,7 @@ export class LogList extends React.Component<Props> {
*/
@computed
get logs() {
const showTimestamps = logTabStore.getData(this.props.id).showTimestamps;
const showTimestamps = logTabStore.getData(this.props.id)?.showTimestamps;
if (!showTimestamps) {
return logStore.logsWithoutTimestamps;