From 676f34092824dd46cd91b27ff00272f097ebe60f Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Mon, 26 Dec 2022 11:10:32 -0500 Subject: [PATCH] Fixed the TS error --- frontend/pages/dashboard/[id].tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/pages/dashboard/[id].tsx b/frontend/pages/dashboard/[id].tsx index 3852e44f6..e4b692691 100644 --- a/frontend/pages/dashboard/[id].tsx +++ b/frontend/pages/dashboard/[id].tsx @@ -378,11 +378,11 @@ export default function Dashboard() { * This function copies the project id to the clipboard */ function copyToClipboard() { - const copyText = document.getElementById('myInput'); + const copyText = document.getElementById('myInput') as HTMLInputElement; if (copyText) { copyText.select(); - // copyText.setSelectionRange(0, 99999); // For mobile devices + copyText.setSelectionRange(0, 99999); // For mobile devices navigator.clipboard.writeText(copyText.value);