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) {
this.update(tabId, loadedLogs);
}
else if (oldLogs) {
} else {
this.update(tabId, "", `${newLogs}\n${loadedLogs}`.trim());
}
} catch (error) {
+1 -1
View File
@@ -33,7 +33,7 @@ export class PodLogs extends React.Component<Props> {
{ label: 100000, value: 100000 },
];
async componentDidMount() {
componentDidMount() {
disposeOnUnmount(this,
reaction(() => this.props.tab.id, async () => {
if (podLogsStore.logs.has(this.tabId)) {