feat: fix issue with the pre-request envs

This commit is contained in:
Andrew Bastin
2021-09-25 21:19:52 +05:30
parent 6751c50514
commit 680937e50b
3 changed files with 46 additions and 41 deletions

View File

@@ -307,7 +307,8 @@ watch(loading, () => {
const newSendRequest = async () => {
loading.value = true
const streamResult = await runRESTRequest$()
// Double calling is because the function returns a TaskEither than should be executed
const streamResult = await runRESTRequest$()()
// TODO: What if stream fetching failed (script execution errors ?) (isLeft)
if (isRight(streamResult)) {