mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
parent
9852e5cfd8
commit
573a635e29
@ -106,7 +106,7 @@ export class LogList extends React.Component<Props> {
|
|||||||
*/
|
*/
|
||||||
@computed
|
@computed
|
||||||
get logs() {
|
get logs() {
|
||||||
const showTimestamps = logTabStore.getData(this.props.id).showTimestamps;
|
const showTimestamps = logTabStore.getData(this.props.id)?.showTimestamps;
|
||||||
|
|
||||||
if (!showTimestamps) {
|
if (!showTimestamps) {
|
||||||
return logStore.logsWithoutTimestamps;
|
return logStore.logsWithoutTimestamps;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user