mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 22:09:08 +08:00
chore: fix eslint in blocksuite (#9232)
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
} from '../../_common/utils/render-linked-doc.js';
|
||||
|
||||
export class PageKeyboardManager {
|
||||
private _handleDelete = () => {
|
||||
private readonly _handleDelete = () => {
|
||||
const blockSelections = this._currentSelection.filter(sel =>
|
||||
sel.is('block')
|
||||
);
|
||||
@@ -117,16 +117,18 @@ export class PageKeyboardManager {
|
||||
|
||||
const doc = rootComponent.host.doc;
|
||||
const autofill = getTitleFromSelectedModels(selectedModels);
|
||||
void promptDocTitle(rootComponent.host, autofill).then(title => {
|
||||
if (title === null) return;
|
||||
convertSelectedBlocksToLinkedDoc(
|
||||
this.rootComponent.std,
|
||||
doc,
|
||||
draftedModels,
|
||||
title
|
||||
).catch(console.error);
|
||||
notifyDocCreated(rootComponent.host, doc);
|
||||
});
|
||||
promptDocTitle(rootComponent.host, autofill)
|
||||
.then(title => {
|
||||
if (title === null) return;
|
||||
convertSelectedBlocksToLinkedDoc(
|
||||
this.rootComponent.std,
|
||||
doc,
|
||||
draftedModels,
|
||||
title
|
||||
).catch(console.error);
|
||||
notifyDocCreated(rootComponent.host, doc);
|
||||
})
|
||||
.catch(console.error);
|
||||
}
|
||||
|
||||
private _deleteBlocksBySelection(selections: BlockSelection[]) {
|
||||
|
||||
Reference in New Issue
Block a user