mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
Remove last ts-expect-error
This commit is contained in:
parent
731f9d109f
commit
66b3096926
1 changed files with 1 additions and 2 deletions
|
@ -10,6 +10,7 @@ import { iconButton } from "editor-toolbar/dynamicComponents";
|
|||
import bracketsIcon from "./code-brackets.svg";
|
||||
|
||||
import { forEditorField } from ".";
|
||||
import { wrap } from "./wrap";
|
||||
|
||||
const clozePattern = /\{\{c(\d+)::/gu;
|
||||
function getCurrentHighestCloze(increment: boolean): number {
|
||||
|
@ -32,8 +33,6 @@ function getCurrentHighestCloze(increment: boolean): number {
|
|||
|
||||
function onCloze(event: MouseEvent): void {
|
||||
const highestCloze = getCurrentHighestCloze(!event.altKey);
|
||||
|
||||
// @ts-expect-error
|
||||
wrap(`{{c${highestCloze}::`, "}}");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue