From 4e1d101f638b14b57f1f862f87bed9e3170103fd Mon Sep 17 00:00:00 2001 From: mbaharip <62494292+mbahArip@users.noreply.github.com> Date: Thu, 25 May 2023 21:59:19 +0700 Subject: [PATCH] Update download url --- src/app/(__components)/compListLayout.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/(__components)/compListLayout.tsx b/src/app/(__components)/compListLayout.tsx index 9231d73..2f50058 100644 --- a/src/app/(__components)/compListLayout.tsx +++ b/src/app/(__components)/compListLayout.tsx @@ -322,11 +322,11 @@ function Action({ const copyLink = useCopyText(); let url: string = apiConfig.basePath; if (path) { + if (isDownloadable) { + url += "/download"; + } url += path; } - if (path && isDownloadable) { - url += `/download${path}`; - } return (