From a6fc859f887a0a240c2eb355405b55e3075a0fbd Mon Sep 17 00:00:00 2001 From: Alex Pishcheiko Date: Fri, 21 Aug 2020 19:56:52 +0100 Subject: [PATCH 1/2] bug fix --- pages/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index 3af5276..c087552 100755 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -272,7 +272,7 @@ function Index(props: Props) { } async function getNewProjectName(projectId) { - let projectName = (document.getElementById("newProjectName") as HTMLInputElement).value + let projectName = (document.getElementById("modal_" + projectId) as HTMLInputElement).value const requestOptions = { method: "PUT", @@ -332,10 +332,10 @@ function Index(props: Props) { onClose={handleModalClose} >
- Update project name: + Update project name:{project.project_id}
- + From a1c470732c3cdbcda3a3bd4b29bb2967c65a597d Mon Sep 17 00:00:00 2001 From: Alex Pishcheiko Date: Fri, 21 Aug 2020 20:00:10 +0100 Subject: [PATCH 2/2] removing consoole log --- components/templates/ListOfSuites.tsx | 1 - pages/index.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/components/templates/ListOfSuites.tsx b/components/templates/ListOfSuites.tsx index b3df8ca..ca3428d 100644 --- a/components/templates/ListOfSuites.tsx +++ b/components/templates/ListOfSuites.tsx @@ -92,7 +92,6 @@ export const ListOfSuites = function(props: Props) { function changeRightSide(value, testId) { setTestInfoSection(value) - console.log(testId) setHighlightedTest(testId) } diff --git a/pages/index.tsx b/pages/index.tsx index c087552..acc469c 100755 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -332,7 +332,7 @@ function Index(props: Props) { onClose={handleModalClose} >
- Update project name:{project.project_id} + Update project name: