Skip to content

Commit

Permalink
fix: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wzhudev committed Apr 21, 2024
1 parent 35da687 commit f6529a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs-ui/src/views/doc-canvas-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { IConfigService,
UniverInstanceType,
} from '@univerjs/core';
import { DOCS_COMPONENT_DEFAULT_Z_INDEX, DOCS_COMPONENT_HEADER_LAYER_INDEX, DOCS_COMPONENT_MAIN_LAYER_INDEX, DOCS_VIEW_KEY, VIEWPORT_KEY } from '@univerjs/docs';
import type { IRender, IWheelEvent, RenderManagerService, Scene } from '@univerjs/engine-render';
import type { IRender, IWheelEvent, Scene } from '@univerjs/engine-render';
import { Documents, EVENT_TYPE, IRenderManagerService, Layer, ScrollBar, Viewport } from '@univerjs/engine-render';
import { IEditorService } from '@univerjs/ui';
import { BehaviorSubject, takeUntil } from 'rxjs';
Expand Down
2 changes: 2 additions & 0 deletions packages/sheets-ui/src/controllers/utils/component-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ export function getSheetObject(
engine = renderManagerService.engine;
}

if (!components) return null;

const spreadsheet = mainComponent as Spreadsheet;
const spreadsheetRowHeader = components.get(SHEET_VIEW_KEY.ROW) as SpreadsheetHeader;
const spreadsheetColumnHeader = components.get(SHEET_VIEW_KEY.COLUMN) as SpreadsheetColumnHeader;
Expand Down

0 comments on commit f6529a4

Please sign in to comment.