From 84521c5130cdcd1fd8659981a8ff07780092fc34 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Thu, 29 Apr 2021 20:14:02 +0200 Subject: [PATCH] fixed array paramter check --- src/nodes/TS3Call/TS3Call.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nodes/TS3Call/TS3Call.ts b/src/nodes/TS3Call/TS3Call.ts index b509831..fef0355 100644 --- a/src/nodes/TS3Call/TS3Call.ts +++ b/src/nodes/TS3Call/TS3Call.ts @@ -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]