1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Tiny cleaning

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2020-10-07 20:09:42 +03:00
parent 940385f9c4
commit a58915ca96
2 changed files with 2 additions and 3 deletions

View File

@ -68,8 +68,7 @@ export class PodLogsStore extends DockTabStore<IPodLogsData> {
}); });
if (!oldLogs) { if (!oldLogs) {
this.update(tabId, loadedLogs); this.update(tabId, loadedLogs);
} } else {
else if (oldLogs) {
this.update(tabId, "", `${newLogs}\n${loadedLogs}`.trim()); this.update(tabId, "", `${newLogs}\n${loadedLogs}`.trim());
} }
} catch (error) { } catch (error) {

View File

@ -33,7 +33,7 @@ export class PodLogs extends React.Component<Props> {
{ label: 100000, value: 100000 }, { label: 100000, value: 100000 },
]; ];
async componentDidMount() { componentDidMount() {
disposeOnUnmount(this, disposeOnUnmount(this,
reaction(() => this.props.tab.id, async () => { reaction(() => this.props.tab.id, async () => {
if (podLogsStore.logs.has(this.tabId)) { if (podLogsStore.logs.has(this.tabId)) {