ZupIT/nimbus

forEach keys not dealing well with types other then String

Closed this issue · 1 comments

In the forEach component:

val keyValue: String? = if (key == null) null else valueOf(item, key)

valueOf(item, key) will expect a String which will not always be the case. We should do the following:

val keyValue: String? = if (key == null) null else `${valueOf<Any?>(item, key)}`

A test should be created to validate this.

Fixed a long time ago.