From c60520c0ff5fdd1fe34209c9ae31d4d497a4aff5 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Tue, 26 Oct 2021 15:28:01 +0200 Subject: [PATCH] Fix replace in action button --- src/explorerView/ExplorerView.ts | 4 ++-- src/panelWebView/components/Actions.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/explorerView/ExplorerView.ts b/src/explorerView/ExplorerView.ts index ff073a22..d327a2a1 100644 --- a/src/explorerView/ExplorerView.ts +++ b/src/explorerView/ExplorerView.ts @@ -12,7 +12,7 @@ import { TagType } from '../panelWebView/TagType'; import { DraftField, TaxonomyType } from '../models'; import { exec } from 'child_process'; import { fromMarkdown } from 'mdast-util-from-markdown'; -import { Content, Root } from 'mdast'; +import { Content } from 'mdast'; import { COMMAND_NAME } from '../constants/Extension'; import { Folders } from '../commands/Folders'; import { Preview } from '../commands/Preview'; @@ -22,7 +22,7 @@ import { Extension } from '../helpers/Extension'; import { Dashboard } from '../commands/Dashboard'; import { ImageHelper } from '../helpers/ImageHelper'; import { CustomScript } from '../helpers/CustomScript'; -import { Link, Parent, Text } from 'mdast-util-from-markdown/lib'; +import { Link, Parent } from 'mdast-util-from-markdown/lib'; const FILE_LIMIT = 10; diff --git a/src/panelWebView/components/Actions.tsx b/src/panelWebView/components/Actions.tsx index b07ffcc7..ac5454f3 100644 --- a/src/panelWebView/components/Actions.tsx +++ b/src/panelWebView/components/Actions.tsx @@ -27,8 +27,8 @@ const Actions: React.FunctionComponent = (props: React.PropsWithC { (settings && settings.scripts && settings.scripts.length > 0) && ( - settings.scripts.map((value) => ( - + settings.scripts.map((value, idx) => ( + )) ) }