Omit the allSnippets key from the insertSnippet function.
This commit is contained in:
parent
0ca34c2a69
commit
26f9aa5c24
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue