fixed array paramter check
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c1c16cdfe0
commit
84521c5130
@ -32,7 +32,7 @@ const nodeInit: NodeInitializer = (RED): void => {
|
||||
if (typeof member === "function"){
|
||||
let args: any[] = []
|
||||
|
||||
if (msg.payload instanceof Array){
|
||||
if (Array.isArray(msg.payload)){
|
||||
args = msg.payload
|
||||
}else{
|
||||
args = [msg.payload]
|
||||
|
Loading…
Reference in New Issue
Block a user