From 26f9aa5c2422d1da79c8f56c1109bdd40e3626fd Mon Sep 17 00:00:00 2001 From: Bauke Date: Wed, 13 Dec 2023 13:59:09 +0100 Subject: [PATCH] Omit the allSnippets key from the insertSnippet function. --- source/content-scripts/features/markdown-toolbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/content-scripts/features/markdown-toolbar.tsx b/source/content-scripts/features/markdown-toolbar.tsx index e2d82d3..8ff4157 100644 --- a/source/content-scripts/features/markdown-toolbar.tsx +++ b/source/content-scripts/features/markdown-toolbar.tsx @@ -125,7 +125,7 @@ function SnippetDropdown(props: Props) { ); } -function insertSnippet(props: Required) { +function insertSnippet(props: Omit, "allSnippets">) { const {textarea, snippet} = props; const {selectionStart, selectionEnd} = textarea;