diff --git a/src/renderer/components/dock/pod-log-list.tsx b/src/renderer/components/dock/pod-log-list.tsx index ef07ae841f..e882b38a5b 100644 --- a/src/renderer/components/dock/pod-log-list.tsx +++ b/src/renderer/components/dock/pod-log-list.tsx @@ -147,12 +147,12 @@ export class PodLogList extends React.Component { const active = isActiveOverlay(rowIndex, index); const lastItem = index === pieces.length - 1; const overlayValue = matches.next().value; - const overlay = !lastItem ? - : - null; + /> + : null; contents.push( diff --git a/src/renderer/components/dock/pod-logs.tsx b/src/renderer/components/dock/pod-logs.tsx index 8591e03ebb..71579be112 100644 --- a/src/renderer/components/dock/pod-logs.tsx +++ b/src/renderer/components/dock/pod-logs.tsx @@ -22,11 +22,9 @@ export class PodLogs extends React.Component { private logListElement = React.createRef(); // A reference for VirtualList component componentDidMount() { - disposeOnUnmount(this, [ - reaction(() => this.props.tab.id, async () => { - await this.reload(); - }, { fireImmediately: true }), - ]); + disposeOnUnmount(this, + reaction(() => this.props.tab.id, this.reload, { fireImmediately: true }) + ); } get tabData() {