Support Tab – {#each} only iterates over array-like objects.
-
Hello, I get this error in the support tab and I think I know why…
Error: {#each} only iterates over array-like objects.
it’s because my WordPress user and the “Support Access” list of email addresses both contain the same email address.
Can you please change the line
array_unique( array_merge( $email, $result['support_contacts'] ) )
to
array_values( array_unique( array_merge( $email, $result['support_contacts'] ) ) )
so that the array indexes are reset, and the JSON that is generated for the support tab doesn’t contain the indexes
0,2,3
etc and fail thevalidate_each_argument
validation? because the array indexes don’t go0,1,2
it can’t iterate over the object.The error is generated here
let each_value = /*$licence*/ ctx[6].support_email_addresses; validate_each_argument(each_value);
For now I will remove my duplicate email address from the “Support Access” list
With thanks.
- The topic ‘Support Tab – {#each} only iterates over array-like objects.’ is closed to new replies.