From 02f5371f57b311ff700ba8108f9d5168da8c22a4 Mon Sep 17 00:00:00 2001 From: sabhas Date: Tue, 19 Oct 2021 16:49:33 +0000 Subject: [PATCH] fix: on clicking execute button open new tab for response --- web/src/containers/SASjsDrive/main.tsx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/web/src/containers/SASjsDrive/main.tsx b/web/src/containers/SASjsDrive/main.tsx index d026412..bf5121a 100644 --- a/web/src/containers/SASjsDrive/main.tsx +++ b/web/src/containers/SASjsDrive/main.tsx @@ -53,14 +53,9 @@ const Main = (props: any) => { setFileContent(fileContentBeforeEdit) setEditMode(false) } else { - setIsLoading(true) - axios - .get(`${baseUrl}/SASjsExecutor/do?_program=${props.selectedFilePath}`) - .then((res) => { - setIsLoading(false) - setEditMode(false) - console.log(res) - }) + window.open( + `${baseUrl}/SASjsExecutor/do?_program=${props.selectedFilePath}` + ) } }