@yudaocode/univer-docs-ui 1.6.204 → 1.6.206

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -7532,7 +7532,18 @@ var DocsExtUIController = class extends import_core7.Disposable {
7532
7532
  this._initMenus();
7533
7533
  this._initWorkbenchParts();
7534
7534
  if (this._config.defaultOpenInspector && this._config.features?.sdtControls) {
7535
- setTimeout(() => openDocInspectorSidebar(this._sidebarService), 120);
7535
+ let disposed = false;
7536
+ const timer = setTimeout(() => {
7537
+ if (!disposed) {
7538
+ openDocInspectorSidebar(this._sidebarService);
7539
+ }
7540
+ }, 120);
7541
+ this.disposeWithMe({
7542
+ dispose: () => {
7543
+ disposed = true;
7544
+ clearTimeout(timer);
7545
+ }
7546
+ });
7536
7547
  }
7537
7548
  }
7538
7549
  _initLocales() {