From e0a49def2691c0d56aebd8ff8ac347e6a4dd6085 Mon Sep 17 00:00:00 2001 From: d064310 Date: Tue, 25 Jun 2024 17:04:31 +0200 Subject: [PATCH] preview: remove leading hash from package name --- apps/assets-overview/src/components/details/TabPreview.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/assets-overview/src/components/details/TabPreview.jsx b/apps/assets-overview/src/components/details/TabPreview.jsx index f395f2411..3422e7f34 100644 --- a/apps/assets-overview/src/components/details/TabPreview.jsx +++ b/apps/assets-overview/src/components/details/TabPreview.jsx @@ -28,8 +28,9 @@ const TabPreview = ({ asset }) => { const config = useMemo(() => { if (!asset || !appProps) return + return { - name: asset?.name, + name: asset?.name?.replace(/^#/, ""), // replace leading # from name version: asset?.version, appPreview: asset?.latestAppPreview, props: appProps,