Tiny cleaning

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

No files matched your search

@@ -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) {
+1 -1
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)) {