From 60ef745c5fac9cbb6d550eca8478759b900f8708 Mon Sep 17 00:00:00 2001 From: David Crespo Date: Tue, 13 Aug 2024 16:08:04 -0500 Subject: [PATCH] disallow unreachable code in ts config, fix one case of it --- app/pages/project/instances/instance/tabs/NetworkingTab.tsx | 2 -- tsconfig.json | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/pages/project/instances/instance/tabs/NetworkingTab.tsx b/app/pages/project/instances/instance/tabs/NetworkingTab.tsx index 27fecb8c71..d009cd8f59 100644 --- a/app/pages/project/instances/instance/tabs/NetworkingTab.tsx +++ b/app/pages/project/instances/instance/tabs/NetworkingTab.tsx @@ -337,8 +337,6 @@ export function NetworkingTab() { }), }, ] - - return [copyAction] }, [ephemeralIpDetach, floatingIpDetach, instanceName, project] ) diff --git a/tsconfig.json b/tsconfig.json index 357e25020e..6106d6b4fa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "compileOnSave": false, "compilerOptions": { + "allowUnreachableCode": false, "allowImportingTsExtensions": true, "baseUrl": ".", "esModuleInterop": true,