Undo my fix in favor of fix from Peter T. LaComb Jr

This commit is contained in:
Sipke Schoorstra 2020-10-25 21:54:15 +01:00
parent a4c0c57d12
commit 16611e2a74

View file

@ -99,9 +99,6 @@ namespace Elsa.Scripting.JavaScript.Services
if (value.IsArray())
{
if (targetType == null)
targetType = typeof(object[]);
var arrayInstance = value.AsArray();
var elementType = targetType?.GetElementType() ?? targetType?.GenericTypeArguments?.First() ?? typeof(object);