mirror of
https://github.com/sasjs/server.git
synced 2026-01-16 18:30:06 +00:00
fix: on clicking execute button open new tab for response
This commit is contained in:
@@ -53,14 +53,9 @@ const Main = (props: any) => {
|
|||||||
setFileContent(fileContentBeforeEdit)
|
setFileContent(fileContentBeforeEdit)
|
||||||
setEditMode(false)
|
setEditMode(false)
|
||||||
} else {
|
} else {
|
||||||
setIsLoading(true)
|
window.open(
|
||||||
axios
|
`${baseUrl}/SASjsExecutor/do?_program=${props.selectedFilePath}`
|
||||||
.get(`${baseUrl}/SASjsExecutor/do?_program=${props.selectedFilePath}`)
|
)
|
||||||
.then((res) => {
|
|
||||||
setIsLoading(false)
|
|
||||||
setEditMode(false)
|
|
||||||
console.log(res)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user