Skip to content

Commit 376a35b

Browse files
committed
Fixed a bug when import from RESTClient 2
1 parent 80ec04f commit 376a35b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/scripts/cores/schema.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ var Schema = {
4242
{
4343
for(let key in request)
4444
{
45-
if(request[key]['method'] && request[key]['url'] && request[key]['body'])
45+
if (typeof request[key]['method'] != 'undefined'
46+
&& typeof request[key]['url'] != 'undefined'
47+
&& typeof request[key]['body'] != 'undefined' )
4648
{
4749
return "v2001";
4850
}

0 commit comments

Comments
 (0)