From a7895fc3961f73339f2d30ca0904918e0a404b7c Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Fri, 26 Sep 2025 17:27:07 +0800 Subject: [PATCH] update copy link --- components/table/article-table.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/components/table/article-table.tsx b/components/table/article-table.tsx index d76b2a8..227f9ae 100644 --- a/components/table/article-table.tsx +++ b/components/table/article-table.tsx @@ -173,11 +173,11 @@ export default function ArticleTable() { initState(); }; - const copyUrlArticle = async (id: number, slug: string) => { + const copyUrlArticle = async (id: number) => { const url = `${window.location.protocol}//${window.location.host}` + - "/news/detail/" + - `${id}-${slug}`; + "/detail/" + + `${id}`; try { await navigator.clipboard.writeText(url); successToast("Success", "Article Copy to Clipboard"); @@ -228,9 +228,7 @@ export default function ArticleTable() { - copyUrlArticle(article.id, article.slug)} - > + copyUrlArticle(article.id)}> Copy Url Article