1
Fork 0

Omit the allSnippets key from the insertSnippet function.

This commit is contained in:
Bauke 2023-12-13 13:59:09 +01:00
parent 0ca34c2a69
commit 26f9aa5c24
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ function SnippetDropdown(props: Props) {
);
}
function insertSnippet(props: Required<Props>) {
function insertSnippet(props: Omit<Required<Props>, "allSnippets">) {
const {textarea, snippet} = props;
const {selectionStart, selectionEnd} = textarea;