mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
fix JSON propety validation of inject node
This commit is contained in:
parent
943b103001
commit
f786c7f144
@ -234,7 +234,7 @@
|
|||||||
}
|
}
|
||||||
} else if (v[i].vt === "jsonata") {
|
} else if (v[i].vt === "jsonata") {
|
||||||
try{jsonata(v[i].v);}catch(e){return false;}
|
try{jsonata(v[i].v);}catch(e){return false;}
|
||||||
} else if ([i].vt === "json") {
|
} else if (v[i].vt === "json") {
|
||||||
try{JSON.parse(v[i].v);}catch(e){return false;}
|
try{JSON.parse(v[i].v);}catch(e){return false;}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user