From 31460026ee2d9d672196f0f7df1aea7b1b1ea222 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Tue, 13 Aug 2024 09:21:32 +0200 Subject: [PATCH] Hide media scripts when empty --- CHANGELOG.md | 6 +++++- src/dashboardWebView/components/Media/CustomActions.tsx | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 812b877e..9ab6296b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## [10.3.0] - 2024-xx-xx +## [10.3.0] - 2024-xx-xx - [Release notes](https://beta.frontmatter.codes/updates/v10.3.0) ### ✨ New features @@ -23,6 +23,10 @@ - [#830](https://github.com/estruyf/vscode-front-matter/issues/830): Fix for using the SEO title field setting to change the title field reference - [#832](https://github.com/estruyf/vscode-front-matter/issues/832): Fix for finding folders with wildcards in the path +## [10.2.1] - 2024-08-08 + +- [#820](https://github.com/estruyf/vscode-front-matter/issues/820): Update API links to the new API URL + ## [10.2.0] - 2024-06-12 - [Release notes](https://beta.frontmatter.codes/updates/v10.2.0) ### ✨ New features diff --git a/src/dashboardWebView/components/Media/CustomActions.tsx b/src/dashboardWebView/components/Media/CustomActions.tsx index 7faced6d..0f4f94d4 100644 --- a/src/dashboardWebView/components/Media/CustomActions.tsx +++ b/src/dashboardWebView/components/Media/CustomActions.tsx @@ -33,6 +33,9 @@ export const CustomActions: React.FunctionComponent = ({ )); }, [scripts]); + if (!customActions.length) { + return null; + } if (showTrigger) { return (