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