Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Fixed the TS error

Vladyslav Matsiiako676f34092824
diff --git a/frontend/pages/dashboard/[id].tsx b/frontend/pages/dashboard/[id].tsx
index 3852e44f6d..e4b6926913 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);