Loading

Public Sector Upgrade causing Type Ahead Blocks to render [object object]

Publiseringsdato: Sep 10, 2026
Beskrivelse

Issue: When component options are set as List<String>, values may not display correctly.

  • List<String>: JSON parsing happens on this data, and the list becomes an object of objects — so the option name needs to be a plain string for it to parse correctly.
  • List<Map>: No serialization is involved, so the Map keeps the data type safe.

Cause: This is intentional, by design. List<String> options go through JSON parsing on the client, which requires each option's name to be a plain string — otherwise the values get turned into objects instead of staying as simple strings. List<Map> skips this parsing step entirely, so it always keeps data types safe.

 

Løsning
Fix/Workaround:
  • Using List<String>? Make sure each option name is a plain string.
  • Need guaranteed type safety without relying on serialization? Use List<Map> instead.
Knowledge-artikkelnummer

005459596

 
Laster
Salesforce Help | Article