mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
style: enable no-non-null-assertion rule (#2723)
Co-authored-by: Peng Xiao <pengxiao@outlook.com>
This commit is contained in:
@@ -47,8 +47,8 @@ const handleEnter = ({
|
||||
null
|
||||
>;
|
||||
const vEditor = getVirgoByModel(blockRange.models[0]);
|
||||
const linkInfo = vEditor!
|
||||
.getDeltasByVRange({
|
||||
const linkInfo = vEditor
|
||||
?.getDeltasByVRange({
|
||||
index: blockRange.startOffset,
|
||||
length: 0,
|
||||
})
|
||||
@@ -70,7 +70,7 @@ const handleEnter = ({
|
||||
currentBlockIndex + 1
|
||||
);
|
||||
|
||||
vEditor!.deleteText({
|
||||
vEditor?.deleteText({
|
||||
index,
|
||||
length,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user