Closed eunjae-lee closed 2 years ago
should fix the issue encountered however in that case as we also use formatValueToList for objectIDs it may lead in some cases of an array of int while we expect an array of string. May be not an issue but we should ensure that everything works fine
@jcohonner Not sure if I get your point correctly, but formatValueToList
makes an array, but tries not to do casting on its own. So we have code like this:
What do you think?
I was just wondering what would happen is we send the ObjectID as a number instead of a string But you're right that function is just about getting the value as an array
I was just wondering what would happen is we send the ObjectID as a number instead of a string But you're right that function is just about getting the value as an array
In that specific case, the engine will turn it into a string.
@jcohonner Thanks! :)
Summary
When users send integer as variable,
formatValueToList
fails. This PR allows the integer value to become an array of it as-is.This can happen when users send data via
dataLayer
(not via data-* attributes on the DOM).