Skip to content

Commit

Permalink
chore: better code
Browse files Browse the repository at this point in the history
  • Loading branch information
lumixraku committed Nov 21, 2024
1 parent 04600ce commit 3b84e59
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,11 @@ export class SheetClipboardController extends RxDisposable {
let docSelectionRenderService = this._renderManagerService.getRenderById(DOCS_NORMAL_EDITOR_UNIT_ID_KEY)?.with(DocSelectionRenderService);

if (docSelectionRenderService) {
// console.log('SheetClipboardController init doc selection service', docSelectionRenderService);
sheetPasteShortKeyFn(docSelectionRenderService);
} else {
// console.log('SheetClipboardController init doc selection service DOCS_NORMAL_EDITOR_UNIT_ID_KEY', DOCS_NORMAL_EDITOR_UNIT_ID_KEY);
this._renderManagerService.created$.subscribe((renderer) => {
if (renderer.unitId === DOCS_NORMAL_EDITOR_UNIT_ID_KEY) {
console.log('SheetClipboardController init doc selection service $$$$', renderer);
docSelectionRenderService = this._renderManagerService.getRenderById(DOCS_NORMAL_EDITOR_UNIT_ID_KEY)?.with(DocSelectionRenderService);
console.log('SheetClipboardController init doc selection service $$$$$', docSelectionRenderService);
if (docSelectionRenderService) {
sheetPasteShortKeyFn(docSelectionRenderService);
}
Expand Down

0 comments on commit 3b84e59

Please sign in to comment.