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:
parent
940385f9c4
commit
a58915ca96
@ -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) {
|
||||||
|
|||||||
@ -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)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user