From 9e6b755f62980f36df08690b08ed83d36fd68925 Mon Sep 17 00:00:00 2001 From: wellCh4n Date: Fri, 16 Aug 2024 14:09:25 +0800 Subject: [PATCH] feat: show path variable friendly in tool edit (#7344) --- web/app/components/tools/edit-custom-collection-modal/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/tools/edit-custom-collection-modal/index.tsx b/web/app/components/tools/edit-custom-collection-modal/index.tsx index e84e15da17..830029e361 100644 --- a/web/app/components/tools/edit-custom-collection-modal/index.tsx +++ b/web/app/components/tools/edit-custom-collection-modal/index.tsx @@ -169,7 +169,7 @@ const EditCustomCollectionModal: FC = ({ return '' try { - const path = new URL(url).pathname + const path = decodeURI(new URL(url).pathname) return path || '' } catch (e) {