Fix app crash when logTabData does not exist in store

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala committed 2021-06-04 11:07:58 +03:00
1 parent e7086a66d1
commit a38ce3252a
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;