1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 11:24:35 +00:00

fix: on clicking execute button open new tab for response

This commit is contained in:
2021-10-19 16:49:33 +00:00
parent cff5ba460d
commit 02f5371f57

View File

@@ -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}`
)
}
}