fix function return type - fixes crash on line 187

This commit is contained in:
Charles Ewert 2023-04-19 14:54:21 -04:00
parent c15540e03a
commit 4492ce056e

View File

@ -177,7 +177,7 @@ sub set(items)
end for
end sub
function getItemType(item) as string
function getItemType(item) as dynamic
if isValid(item) and isValid(item.json) and isValid(item.json.mediatype) and item.json.mediatype <> ""
return LCase(item.json.mediatype)
else if isValid(item) and isValid(item.type) and item.type <> ""