From 1256ea80f4f1feedf9344020d1bb5fbbaf8e21a4 Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 5 Mar 2025 19:43:42 -0500 Subject: fixing compile/runtime errors. --- src/client/views/collections/CollectionDockingView.tsx | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/client/views/collections/CollectionDockingView.tsx') diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index 04e3b2663..e51bc18ef 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -65,7 +65,6 @@ export class CollectionDockingView extends CollectionSubView() { constructor(props: SubCollectionViewProps) { super(props); makeObservable(this); - console.log('CREATING DOCKING VIEW'); if (this._props.renderDepth < 0) CollectionDockingView.Instance = this; // Why is this here? (window as unknown as { React: unknown }).React = React; @@ -282,7 +281,6 @@ export class CollectionDockingView extends CollectionSubView() { } setupGoldenLayout = async () => { if (this._unmounting) return; - console.log('SETUP LAYOUT'); // const config = StrCast(this.Document.dockingConfig, JSON.stringify(DashboardView.resetDashboard(this.Document))); const config = StrCast(this.Document.dockingConfig); if (config) { @@ -340,7 +338,6 @@ export class CollectionDockingView extends CollectionSubView() { componentDidMount: () => void = async () => { this._props.setContentViewBox?.(this); this._unmounting = false; - console.log('MOUNTING'); SetPropSetterCb('title', this.titleChanged); // this overrides any previously assigned callback for the property if (this._containerRef.current) { this._disposers.lightbox = reaction( @@ -352,7 +349,6 @@ export class CollectionDockingView extends CollectionSubView() { () => StrCast(this.Document.dockingConfig), config => { if (!this._goldenLayout || this._ignoreStateChange !== config) { - console.log('CONFIG CHANGED'); // bcz: TODO! really need to diff config with ignoreStateChange and modify the current goldenLayout instead of building a new one. this.setupGoldenLayout(); } @@ -363,7 +359,6 @@ export class CollectionDockingView extends CollectionSubView() { () => this._props.PanelWidth(), width => { if (!this._goldenLayout && width > 20) { - console.log('PWIDTH = ' + width); setTimeout(() => this.setupGoldenLayout()); } }, // need to wait for the collectiondockingview-container to have it's width/height since golden layout reads that to configure its windows @@ -383,7 +378,6 @@ export class CollectionDockingView extends CollectionSubView() { }; componentWillUnmount: () => void = () => { - console.log('UNMOUNTING'); this._unmounting = true; Object.values(this._disposers).forEach(d => d()); try { @@ -419,7 +413,6 @@ export class CollectionDockingView extends CollectionSubView() { .map(f => f as Doc); const changesMade = this.Document.dockingConfig !== json; if (changesMade) { - console.log('WRITING CONFIG'); if (![AclAdmin, AclEdit].includes(GetEffectiveAcl(this.dataDoc))) { this.layoutDoc.dockingConfig = json; this.layoutDoc.data = new List(docs); -- cgit v1.2.3-70-g09d2