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

remove console.log

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-10-07 08:45:42 -04:00
parent b9effeb740
commit 3b8238e342
2 changed files with 5 additions and 7 deletions

View File

@ -145,7 +145,7 @@ describe("log tab store", () => {
});
podsStore.items.clear();
expect(logTabStore.getData(dockStore.selectedTabId)).toBeUndefined();
expect(logTabStore.getData(id)).toBeUndefined();
expect(dockStore.getTabById(id)).toBeUndefined();

View File

@ -21,7 +21,7 @@
import * as uuid from "uuid";
import { action, computed, IReactionOptions, makeObservable, observable, reaction } from "mobx";
import { autoBind, createStorage, toJS } from "../../utils";
import { autoBind, createStorage } from "../../utils";
import throttle from "lodash/throttle";
import {monacoModelsManager} from "./monaco-model-manager";
@ -160,7 +160,7 @@ export class DockStore implements DockStorageState {
window.addEventListener("resize", throttle(this.adjustHeight, 250));
// create monaco models
this.whenReady.then(() => {this.tabs.forEach(tab => {
if (this.usesMonacoEditor(tab)) {
if (this.usesMonacoEditor(tab)) {
monacoModelsManager.addModel(tab.id);
}
});});
@ -274,7 +274,7 @@ export class DockStore implements DockStorageState {
title
};
// add monaco model
// add monaco model
if (this.usesMonacoEditor(tab)) {
monacoModelsManager.addModel(id);
}
@ -294,7 +294,7 @@ export class DockStore implements DockStorageState {
return;
}
// remove monaco model
// remove monaco model
if (this.usesMonacoEditor(tab)) {
monacoModelsManager.removeModel(tabId);
}
@ -311,8 +311,6 @@ export class DockStore implements DockStorageState {
this.close();
}
}
console.log(tabId, toJS(this.tabs));
}
closeTabs(tabs: DockTab[]) {